Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

char property

Gets a character for a key that is pressed, if available.

Internet Explorer 9

 

Syntax

JavaScript

p = object.char

 

Property values

Type: Variant

the Unicode character of the key that is pressed, or null.

See also

KeyboardEvent
Reference
charCode
key
keyCode
which

 

 

Show:
© 2015 Microsoft