The keyboardEvent charCode property in HTML is used to return the unicode value of a character key pressed during a keypress event. It is a read-only property. The unicode character denotes the number of a character(e.g. the unicode for “A” is 65).
Return Value: It returns a number which represents the unicode number of the pressed character.
Supported Browsers: The browser supported by keyboardEvent charCode property are listed below:
- Apple Safari
- Google Chrome
- Internet Explorer 9.0
- HTML | DOM KeyboardEvent key Property
- HTML | KeyboardEvent which Property
- HTML | DOM KeyboardEvent location Property
- HTML | DOM KeyboardEvent keyCode Property
- HTML | DOM KeyboardEvent shiftKey Property
- HTML | DOM KeyboardEvent metaKey Property
- HTML DOM | KeyboardEvent altKey Property
- HTML | DOM KeyboardEvent code Property
- HTML | DOM KeyboardEvent
- HTML | DOM KeyboardEvent getModifierState() Method
- HTML | DOM specified Property
- HTML | DOM value Property
- HTML | DOM name Property
- HTML | DOM URL Property
- HTML | DOM li value Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.