Js Key Code
Js Key Code
Log In
Software Better
Home → Articles → Javascript Char Codes (Key Codes) Home Search Articles Categories About
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.
escape 27 m 77 f2 113
page up 33 n 78 f3 114
1 of 4 11/12/14 17:47
Javascript Char Codes (Key Codes) - Cambia Research http://www.cambiaresearch.com/articles/15/javas...
end 35 p 80 f5 116
home 36 q 81 f6 117
up arrow 38 s 83 f8 119
2 50 z 90 semi-colon 186
d 68 numpad 7 103
Back to Top
2 of 4 11/12/14 17:47
Javascript Char Codes (Key Codes) - Cambia Research http://www.cambiaresearch.com/articles/15/javas...
WII:
Platform: "Nintendo Wii"
Up: 175 (CAUTION! ALSO SCROLLS UP)
Down: 176 (CAUTION! ALSO SCROLLS DOWN)
Left: 178 (CAUTION! ALSO SCROLLS LEFT)
Right: 177 (CAUTION! ALSO SCROLLS RIGHT)
-: 170 (CAUTION! ALSO ZOOMS OUT)
+: 174 (CAUTION! ALSO ZOOMS IN)
1: 172
2: 173 (CAUTION! ALSO SPLITS SCREEN INTO SINGLE COLUMN MODE)
PS3:
Platform: "PLAYSTATION 3"
3 of 4 11/12/14 17:47
Javascript Char Codes (Key Codes) - Cambia Research http://www.cambiaresearch.com/articles/15/javas...
4 of 4 11/12/14 17:47