onkeypress | NN 4 IE 4 DOM 3 |
Bubbles: Yes; Cancelable: Yes | |
Fires after the user presses and releases a keyboard character key. The event sequence is: onkeydown, onkeyup, and onkeypress. The instance of the event object for these events contains information about the character of the pressed key. See Chapter 6 for details on cross-browser handling of keyboard events. |
|
Typical Targets | |
All focusable rendered elements, plus the document object. |