Mega Code Archive

 
Categories / JavaScript Reference / Javascript Properties
 

KeyCode Syntax and Note

Note: Read-only property.  Returns the key code pressed.  Used with the onKeyDown, onKeyUp, and onKeyPress events. onKeyPress event,        the return value is in Unicode.                           This code distinguishes between uppercase and                           lowercase characters.  --------------------------------------------------------------------------- onKeyDown and            the return value code is a character code. onKeyUp events,                Syntax:      window.event.keyCode