HTML | DOM keyboardEvent charCode Property
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
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.