JavaScript Key Codes (Char Codes)
Mit der JavaScript Funktion fromCharCode kann ein Char Code nach ASCII umgewandelt werden:
To test a Char Code simply use this JavaScript Snippet
<script>
document.write(String.fromCharCode(65)); /* -> A */
</script>
Umwandler von Char Code nach ASCII und von ASCII nach Char Code
JavaScript Char Codes Übersichtstabelle
Reference JavaScript Key Codes Char Codes
Javascript Key Code | Example | Key Pressed | Gedrückte Taste |
---|---|---|---|
8 | backspace | Leertaste | |
9 | tab | Tabulatur | |
13 | enter | Enter | |
16 | shift | Shift | |
17 | ctrl | Strg | |
18 | alt | Alt | |
19 | pause/break | Pause | |
20 | caps lock | Caps lock | |
27 | escape | ESC | |
33 | page up | Seite nach oben | |
34 | page down | Seite nach unten | |
35 | end | Ende | |
36 | home | ||
37 | left arrow | Pfeil nach links | |
38 | up arrow | Pfeil nach oben | |
39 | right arrow | Pfeil nach rechts | |
40 | down arrow | Pfeil nach unten | |
45 | insert | Einfügen | |
46 | delete | Löschen | |
48 | 0 | 0 | |
49 | 1 | 1 | |
50 | 2 | 2 | |
51 | 3 | 3 | |
52 | 4 | 4 | |
53 | 5 | 5 | |
54 | 6 | 6 | |
55 | 7 | 7 | |
56 | 8 | 8 | |
57 | 9 | 9 | |
65 | A | A | |
66 | B | B | |
67 | C | C | |
68 | D | D | |
69 | E | E | |
70 | F | F | |
71 | G | G | |
72 | H | H | |
73 | I | I | |
74 | J | J | |
75 | K | K | |
76 | L | L | |
77 | M | M | |
78 | N | N | |
79 | O | O | |
80 | P | P | |
81 | Q | Q | |
82 | R | R | |
83 | S | S | |
84 | T | T | |
85 | U | U | |
86 | V | V | |
87 | W | W | |
88 | X | X | |
89 | Y | Y | |
90 | Z | Z | |
91 | left window key | ||
92 | right window key | ||
93 | select key | ||
96 | numpad 0 | Ziffenblock 0 | |
97 | numpad 1 | Ziffenblock 1 | |
98 | numpad 2 | Ziffenblock 2 | |
99 | numpad 3 | Ziffenblock 3 | |
100 | numpad 4 | Ziffenblock 4 | |
101 | numpad 5 | Ziffenblock 5 | |
102 | numpad 6 | Ziffenblock 6 | |
103 | numpad 7 | Ziffenblock 7 | |
104 | numpad 8 | Ziffenblock 8 | |
105 | numpad 9 | Ziffenblock 9 | |
106 | multiply | Multiplizieren | |
107 | add | Addieren | |
109 | subtract | Subtrahieren | |
110 | decimal point | Dezimalpunkt | |
111 | divide | Teilen | |
112 | f1 | F1 | |
113 | f2 | F2 | |
114 | f3 | F3 | |
115 | f4 | F4 | |
116 | f5 | F5 | |
117 | f6 | F6 | |
118 | f7 | F7 | |
119 | f8 | F8 | |
120 | f9 | F9 | |
121 | f10 | F10 | |
122 | f11 | F11 | |
123 | f12 | F12 | |
144 | num lock | Numlock | |
145 | scroll lock | ||
186 | semi-colon | Semikolon | |
187 | equal sign | Gleich | |
188 | comma | Komma | |
189 | dash | ||
190 | period | ||
191 | forward slash | ||
192 | grave accent | ||
219 | open bracket | ||
220 | back slash | ||
221 | close braket | ||
222 | single quote |