Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft