Sets or retrieves the Unicode key code associated with the key that caused the event.
Syntax
[ sKeyCode = ] object.keyCode
Possible Values
| sKeyCode | Integer that
specifies or receives the Unicode key code. |
The property is read/write.
The property has no default value.
DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.
Remarks
The property is used with the onkeydown, onkeyup, and onkeypress events.
The property's value is 0 if no key caused the event.
Standards Information
There is no public standard that applies to this property.
Applies To