July 1998
Intermediate to advanced
1456 pages
65h 5m
English
keyCode — NN n/a IE 4 DOM n/a
Read/Write
The Unicode key value for the keyboard key that triggered the event.
For onKeyPress events, the value represents the
actual character displayed in a text box (e.g., 65 for
“A” and 97 for “a”). But for
onKeyDown and onKeyUp events,
only the uppercase value is returned, regardless of the case of the
character that is rendered. If the event is not keyboard driven, the
value is zero. While you may change the value of this property, it
does not influence the character displayed in the text field. See
Chapter 6 about capturing keyboard events.
if (event.keyCode == 65) {
...
}Integer.
None.
Read now
Unlock full access