Click to return to the DHTML, HTML     
isTextEdit Property     LANG Attribute | lang Pro...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

keyCode Property


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

Syntax

HTMLN/A
Scriptingevent.keyCode [ = sKeyCode ]

Possible Values

sKeyCodeString that specifies the Unicode key code.

The property is read/write with no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see 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.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting event


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.