Wednesday, April 7, 2010

Javascript Char Codes (Key Codes)

Javascript Char Codes (Key Codes)

Javascript is often used on the browser client side to perform simple tasks that would otherwise require a full postback to the server. Many of those simple tasks involve processing text or characters entered into a form element on a web page, and it is often necessary to know the javascript keycode associated with a character. Here is a reference.

Press a key in the text box below to see the corresponding Javascript key code. Or scroll down to see the full list.
Key -- Code
tab -- 9
enter -- 13

0 comments: