Capture Events: onkeypress

This script will capture any keypress on the keyboard. Please press a key on the keyboard for a demonstration.

This script cannot be used with a form, as the capture of the keypress event will override any characters to be entered into text areas, etc.

Select and copy the script from below, or use the reveal code function on your browser. Watch out for wrapped lines.