Export (0) Print
Expand All
10 out of 29 rated this helpful - Rate this topic

keyCode property

Sets or retrieves the Unicode key code associated with the key that caused the event.

Syntax

JavaScript

p = object.keyCode

Property values

Type: Integer

the Unicode key code.

Remarks

The property is used with the onkeydown, onkeyup, and onkeypress events.

The property's value is 0 if no key caused the event.

See also

event

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.