/

HTML / CSS / JavaScript Tutorial

JavaScript DOM KeyboardEvent property: charCode

[this page | pdf | back links]

The charCode property of KeyboardEvent objects within the JavaScript DOM (i.e. events triggered by an action with the keyboard) returns the Unicode character code of the key triggering the onkeypress event.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile