熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java核心技術 >> 正文

javascript keyCode

2022-06-13   來源: Java核心技術 
     <script>
        windowonload = keyEvent;
                function keyEvent() {
                    var bro = new Browser();
                    documentonkeydown = function(){
                        if (!broisIE()) {
                            var oEvent = arguments[];
                            var iKey = oEventkeyCode;
                            alert(iKey);
                        }else {
                            var oEventIE = windowevent;
                            alert(oEventIEkeyCode);
                        }
                    };
                }
    </script>

  

  keycode    = BackSpace BackSpace
    keycode    = Tab Tab
    keycode   = Clear
    keycode   = Enter
    keycode   = Shift_L
    keycode   = Control_L
    keycode   = Alt_L
    keycode   = Pause
    keycode   = Caps_Lock
    keycode   = Escape Escape
    keycode   = space space
    keycode   = Prior
    keycode   = Next
    keycode   = End
    keycode   = Home
    keycode   = Left
    keycode   = Up
    keycode   = Right
    keycode   = Down
    keycode   = Select
    keycode   = Print
    keycode   = Execute
    keycode   = Insert
    keycode   = Delete
    keycode   = Help
    keycode   = equal braceright
    keycode   = exclam onesuperior
    keycode   = quotedbl twosuperior
    keycode   = section threesuperior
    keycode   = dollar
    keycode   = percent
    keycode   = ampersand
    keycode   = slash braceleft
    keycode   = parenleft bracketleft
    keycode   = parenright bracketright
    keycode   = a A
    keycode   = b B
    keycode   = c C
    keycode   = d D
    keycode   = e E EuroSign
    keycode   = f F
    keycode   = g G
    keycode   = h H
    keycode   = i I
    keycode   = j J
    keycode   = k K
    keycode   = l L
    keycode   = m M mu
    keycode   = n N
    keycode   = o O
    keycode   = p P
    keycode   = q Q at
    keycode   = r R
    keycode   = s S
    keycode   = t T
    keycode   = u U
    keycode   = v V
    keycode   = w W
    keycode   = x X
    keycode   = y Y
    keycode   = z Z
 

  keycode   = KP_ KP_
    keycode   = KP_ KP_
    keycode   = KP_ KP_
    keycode   = KP_ KP_
    keycode = KP_ KP_
    keycode = KP_ KP_
    keycode = KP_ KP_
    keycode = KP_ KP_
    keycode = KP_ KP_
    keycode = KP_ KP_
    keycode = KP_Multiply KP_Multiply
    keycode = KP_Add KP_Add
    keycode = KP_Separator KP_Separator
    keycode = KP_Subtract KP_Subtract
    keycode = KP_Decimal KP_Decimal
    keycode = KP_Divide KP_Divide
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = F
    keycode = Num_Lock
    keycode = Scroll_Lock
    keycode = acute grave
    keycode = comma semicolon
    keycode = minus underscore
    keycode = period colon
    keycode = numbersign apostrophe
    keycode = plusminus hyphen macron
    keycode =
    keycode = copyright registered
    keycode = guillemotleft guillemotright
    keycode = masculine ordfeminine
    keycode = ae AE
    keycode = cent yen
    keycode = questiondown exclamdown
    keycode = onequarter onehalf threequarters
    keycode = less greater bar
    keycode = plus asterisk asciitilde
    keycode = multiply division
    keycode = acircumflex Acircumflex
    keycode = ecircumflex Ecircumflex
    keycode = icircumflex Icircumflex
    keycode = ocircumflex Ocircumflex
    keycode = ucircumflex Ucircumflex
    keycode = ntilde Ntilde
    keycode = yacute Yacute
    keycode = oslash Ooblique
    keycode = aring Aring
    keycode = ccedilla Ccedilla
    keycode = thorn THORN
    keycode = eth ETH
    keycode = diaeresis cedilla currency
    keycode = agrave Agrave atilde Atilde
    keycode = egrave Egrave
    keycode = igrave Igrave
    keycode = ograve Ograve otilde Otilde
    keycode = ugrave Ugrave
    keycode = adiaeresis Adiaeresis
    keycode = ediaeresis Ediaeresis
    keycode = idiaeresis Idiaeresis
    keycode = odiaeresis Odiaeresis
    keycode = udiaeresis Udiaeresis
    keycode = ssharp question backslash
    keycode = asciicircum degree
    keycode = sterling
    keycode = Mode_switch


From:http://tw.wingwit.com/Article/program/Java/hx/201311/25859.html
  • 上一篇文章:

  • 下一篇文章:
  • 推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.