Javascript的keycode大全
JavaScript #keycode2012-07-21 11:31
今天收藏来的。
001 | keycode 8 = BackSpace BackSpace |
002 | keycode 9 = Tab Tab |
003 | keycode 12 = Clear |
004 | keycode 13 = Enter |
005 | keycode 16 = Shift_L |
006 | keycode 17 = Control_L |
007 | keycode 18 = Alt_L |
008 | keycode 19 = Pause |
009 | keycode 20 = Caps_Lock |
010 | keycode 27 = Escape Escape |
011 | keycode 32 = space space |
012 | keycode 33 = Prior |
013 | keycode 34 = Next |
014 | keycode 35 = End |
015 | keycode 36 = Home |
016 | keycode 37 = Left |
017 | keycode 38 = Up |
018 | keycode 39 = Right |
019 | keycode 40 = Down |
020 | keycode 41 = Select |
021 | keycode 42 = Print |
022 | keycode 43 = Execute |
023 | keycode 45 = Insert |
024 | keycode 46 = Delete |
025 | keycode 47 = Help |
026 | keycode 48 = 0 equal braceright |
027 | keycode 49 = 1 exclam onesuperior |
028 | keycode 50 = 2 quotedbl twosuperior |
029 | keycode 51 = 3 section threesuperior |
030 | keycode 52 = 4 dollar |
031 | keycode 53 = 5 percent |
032 | keycode 54 = 6 ampersand |
033 | keycode 55 = 7 slash braceleft |
034 | keycode 56 = 8 parenleft bracketleft |
035 | keycode 57 = 9 parenright bracketright |
036 | keycode 65 = a A |
037 | keycode 66 = b B |
038 | keycode 67 = c C |
039 | keycode 68 = d D |
040 | keycode 69 = e E EuroSign |
041 | keycode 70 = f F |
042 | keycode 71 = g G |
043 | keycode 72 = h H |
044 | keycode 73 = i I |
045 | keycode 74 = j J |
046 | keycode 75 = k K |
047 | keycode 76 = l L |
048 | keycode 77 = m M mu |
049 | keycode 78 = n N |
050 | keycode 79 = o O |
051 | keycode 80 = p P |
052 | keycode 81 = q Q at |
053 | keycode 82 = r R |
054 | keycode 83 = s S |
055 | keycode 84 = t T |
056 | keycode 85 = u U |
057 | keycode 86 = v V |
058 | keycode 87 = w W |
059 | keycode 88 = x X |
060 | keycode 89 = y Y |
061 | keycode 90 = z Z |
062 | keycode 96 = KP_0 KP_0 |
063 | keycode 97 = KP_1 KP_1 |
064 | keycode 98 = KP_2 KP_2 |
065 | keycode 99 = KP_3 KP_3 |
066 | keycode 100 = KP_4 KP_4 |
067 | keycode 101 = KP_5 KP_5 |
068 | keycode 102 = KP_6 KP_6 |
069 | keycode 103 = KP_7 KP_7 |
070 | keycode 104 = KP_8 KP_8 |
071 | keycode 105 = KP_9 KP_9 |
072 | keycode 106 = KP_Multiply KP_Multiply |
073 | keycode 107 = KP_Add KP_Add |
074 | keycode 108 = KP_Separator KP_Separator |
075 | keycode 109 = KP_Subtract KP_Subtract |
076 | keycode 110 = KP_Decimal KP_Decimal |
077 | keycode 111 = KP_Divide KP_Divide |
078 | keycode 112 = F1 |
079 | keycode 113 = F2 |
080 | keycode 114 = F3 |
081 | keycode 115 = F4 |
082 | keycode 116 = F5 |
083 | keycode 117 = F6 |
084 | keycode 118 = F7 |
085 | keycode 119 = F8 |
086 | keycode 120 = F9 |
087 | keycode 121 = F10 |
088 | keycode 122 = F11 |
089 | keycode 123 = F12 |
090 | keycode 124 = F13 |
091 | keycode 125 = F14 |
092 | keycode 126 = F15 |
093 | keycode 127 = F16 |
094 | keycode 128 = F17 |
095 | keycode 129 = F18 |
096 | keycode 130 = F19 |
097 | keycode 131 = F20 |
098 | keycode 132 = F21 |
099 | keycode 133 = F22 |
100 | keycode 134 = F23 |
101 | keycode 135 = F24 |
102 | keycode 136 = Num_Lock |
103 | keycode 137 = Scroll_Lock |
104 | keycode 187 = acute grave |
105 | keycode 188 = comma semicolon |
106 | keycode 189 = minus underscore |
107 | keycode 190 = period colon |
108 | keycode 192 = numbersign apostrophe |
109 | keycode 210 = plusminus hyphen macron |
110 | keycode 211 = |
111 | keycode 212 = copyright registered |
112 | keycode 213 = guillemotleft guillemotright |
113 | keycode 214 = masculine ordfeminine |
114 | keycode 215 = ae AE |
115 | keycode 216 = cent yen |
116 | keycode 217 = questiondown exclamdown |
117 | keycode 218 = onequarter onehalf threequarters |
118 | keycode 220 = less greater bar |
119 | keycode 221 = plus asterisk asciitilde |
120 | keycode 227 = multiply division |
121 | keycode 228 = acircumflex Acircumflex |
122 | keycode 229 = ecircumflex Ecircumflex |
123 | keycode 230 = icircumflex Icircumflex |
124 | keycode 231 = ocircumflex Ocircumflex |
125 | keycode 232 = ucircumflex Ucircumflex |
126 | keycode 233 = ntilde Ntilde |
127 | keycode 234 = yacute Yacute |
128 | keycode 235 = oslash Ooblique |
129 | keycode 236 = aring Aring |
130 | keycode 237 = ccedilla Ccedilla |
131 | keycode 238 = thorn THORN |
132 | keycode 239 = eth ETH |
133 | keycode 240 = diaeresis cedilla currency |
134 | keycode 241 = agrave Agrave atilde Atilde |
135 | keycode 242 = egrave Egrave |
136 | keycode 243 = igrave Igrave |
137 | keycode 244 = ograve Ograve otilde Otilde |
138 | keycode 245 = ugrave Ugrave |
139 | keycode 246 = adiaeresis Adiaeresis |
140 | keycode 247 = ediaeresis Ediaeresis |
141 | keycode 248 = idiaeresis Idiaeresis |
142 | keycode 249 = odiaeresis Odiaeresis |
143 | keycode 250 = udiaeresis Udiaeresis |
144 | keycode 251 = ssharp question backslash |
145 | keycode 252 = asciicircum degree |
146 | keycode 253 = 3 sterling |
147 | keycode 254 = Mode_switch |
1 | function keyevent(){ |
2 | if (event.keyCode==13) |
3 | alert( "http://yige.org" ); |
4 | } |
5 |
6 | document.onkeydown = keyevent; |
相关文章
- JS版本md5加密函数 2012/07/19
- js获取光标位置 2012/07/14
- JS的keyDown()和keyPress()区别 2012/07/13
- JS获取url参数的函数 2012/07/12
- 13个JavaScript性能提升技巧 2012/07/11
- js版IPv6的正则表达式 2012/07/10
- 同步异步动态引入js文件的几种方法 2012/07/05
- JS用sort()方法对数组的元素进行排序 2012/07/05
- 用JS设置表单输入框中的提示信息 2012/07/05
- 用js增加PV的方法 2012/07/05