August 2006
Intermediate to advanced
1018 pages
34h 13m
English
HTMLElement.onkeydown: event handler invoked when the user presses a key — DOM Level 0
Function onkeydown
The onkeydown property of
an HTMLElement object specifies an event-handler function that is
invoked when the user presses a key while the element has keyboard
focus. Determing which key or keys were pressed is somewhat
browser-dependent. See Chapter 17 for
details.
The onkeydown handler is
usually the prefered handler for function keys, but use onkeypress to respond to regular
alphanumeric key presses.
HTMLElement.onkeypress;
Chapter 17
Read now
Unlock full access