JavaScript keyboard Event.keycode Value list Daquan

Source: Internet
Author: User

JavaScript keyboard Event.keycode Value list Daquan font: [AddDecrease] Type: ReprintA list of event.keycode values for friends who need to trigger corresponding events based on keyboard keys. The KeyCode value collected online is convenient for everyone to find:
KeyCode 8 = BackSpace BackSpaceKeyCode 9 = Tab tabKeyCode = ClearKeyCode = EnterKeyCode = shift_lKeyCode = control_lKeyCode = alt_lKeyCode = PauseKeyCode = Caps_lockKeyCode = Escape escapeKeyCode = Space SpaceKeyCode = PriorKeyCode = NextKeyCode = EndKeyCode = HomeKeyCode PNs = LeftKeyCode = upKeyCode = RightKeyCode = DownKeyCode = SelectKeyCode = PrintKeyCode = ExecuteKeyCode = InsertKeyCode = DeleteKeyCode = Helpkeycode = 0 Equal bracerightkeycode = 1 Exclam onesuperiorKeyCode = 2 Quotedbl twosuperiorkeycode = 3 section Threesuperiorkeycode = 4 DollarKeyCode = 5 percentKeyCode = 6 Ampersandkeycode = 7 Slash braceleftKeyCode = 8 Parenleft bracketleftKeyCode = 9 Parenright bracketrightKeyCode = a AKeyCode = b bKeyCode = c CKeyCode = d DKeyCode = e e eurosignKeyCode = f FKeyCode = g gKeyCode = h HKeyCode = i IKeyCode = J JKeyCode = k KKeyCode = l lkeycode = M M muKeyCode = n Nkeycode = o OKeyCode = P pKeyCode Bayi = q q atKeyCode = r RKeyCode = s SKeyCode = t TKeyCode = u uKeyCode = v VKeyCode = w WKeyCode = x xKeyCode = y yKeyCode = Z ZKeyCode = Kp_0 Kp_0KeyCode = Kp_1 kp_1KeyCode 98 = kp_2 kp_2KeyCode = Kp_3 Kp_3KeyCode = Kp_4 Kp_4KeyCode 101 = kp_5 Kp_5KeyCode 102 = Kp_6 Kp_6KeyCode 103 = kp_7 kp_7KeyCode 104 = Kp_8 Kp_8KeyCode = Kp_9 Kp_9KeyCode 106 = kp_multiply kp_multiplyKeyCode 107 = Kp_add Kp_addKeyCode 108 = Kp_separator Kp_separatorKeyCode 109 = kp_subtract Kp_subtractKeyCode = Kp_decimal Kp_decimalKeyCode 111 = kp_divide Kp_divideKeyCode = F1KeyCode 113 = F2KeyCode = F3KeyCode = F4KeyCode = F5KeyCode 117 = F6KeyCode 118 = F7KeyCode 119 = F8KeyCode = F9KeyCode 121 = F10KeyCode 122 = F11KeyCode 123 = F12KeyCode 124 = F13KeyCode = F14KeyCode 126 = F15KeyCode 127 = F16KeyCode = F17KeyCode 129 = F18KeyCode = F19KeyCode 131 = F20KeyCode = F21KeyCode 133 = F22KeyCode 134 = F23KeyCode 135 = F24KeyCode 136 = Num_lockKeyCode 137 = Scroll_lockKeyCode 187 = Acute graveKeyCode 188 = Comma semicolonKeyCode 189 = minus underscorekeycode = Period ColonKeyCode 192 = numbersign ApostropheKeyCode = Plusminus hyphen MacronKeyCode 211 =KeyCode 212 = Copyright RegisteredKeyCode 213 = Guillemotleft GuillemotrightKeyCode 214 = masculine OrdfeminineKeyCode 215 = AE AEKeyCode 216 = cent yenKeyCode 217 = Questiondown ExclamdownKeyCode 218 = Onequarter Onehalf threequartersKeyCode = Less Greater barKeyCode 221 = plus asterisk AsciitildeKeyCode 227 = Multiply DivisionKeyCode 228 = Acircumflex AcircumflexKeyCode 229 = Ecircumflex EcircumflexKeyCode = Icircumflex IcircumflexKeyCode 231 = Ocircumflex OcircumflexKeyCode 232 = Ucircumflex UcircumflexKeyCode 233 = Ntilde NtildeKeyCode 234 = Yacute YacuteKeyCode 235 = Oslash OobliqueKeyCode 236 = aring aringKeyCode 237 = Ccedilla CcedillaKeyCode 238 = Thorn ThornKeyCode 239 = ETH ETHKeyCode = diaeresis cedilla currencyKeyCode 241 = Agrave Agrave Atilde AtildeKeyCode 242 = Egrave EgraveKeyCode 243 = Igrave IgraveKeyCode 244 = ograve Ograve Otilde OtildeKeyCode 245 = Ugrave UgraveKeyCode 246 = adiaeresis adiaeresisKeyCode 247 = ediaeresis ediaeresisKeyCode 248 = idiaeresis idiaeresisKeyCode 249 = odiaeresis OdiaeresisKeyCode = Udiaeresis udiaeresisKeyCode 251 = ssharp question BackslashKeyCode 252 = Asciicircum DegreeKeyCode 253 = 3 SterlingKeyCode 254 = Mode_switchUse<script language= "JavaScript" >function KeyEvent () { if (event.keycode==13) alert ("#$%#%# ^^%"); } Document.onkeydown = KeyEvent; </script> event.keycode value for 37,38,39,40 the direction of the press is left, top, right, bottom
"Javascript:if (Event.keycode < 45 | | Event.keycode >) Event.returnvalue = false; ");
if (event.keycode==13) means that the press-enter keyboard is pressed
"Javascript:if (Event.keycode > && event.keycode <) Event.returnvalue = false;");  

JavaScript keyboard Event.keycode Value list Daquan

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.