Returns a number representing the character that was pressed as part of the key event.
Syntaxcharacter = event.charCode
character is a number representing the key that was pressed for the event.
Mouse events generate a charCode of 0. For a list of the charCode values associated with particular keys, run the example in Example 7: Displaying Event Object Constants and view the resulting HTML table.
SpecificationNot part of specification. See nsIDOMKeyEvent.IDL