Javascript中的Keycode值列表

Tomhsfreestyle 2012-05-16

关于如何得到一个键在Javascript中的Keycode值,可以参考:

<bodyonkeypress=alert(event.keyCode)>请按任意键,你将得到该键的键值!

keycode0=

keycode1=

keycode2=

keycode3=

keycode4=

keycode5=

keycode6=

keycode7=

keycode8=BackSpaceBackSpace

keycode9=TabTab

keycode10=

keycode11=

keycode12=Clear

keycode13=Enter

keycode14=

keycode15=

keycode16=Shift_L

keycode17=Control_L

keycode18=Alt_L

keycode19=Pause

keycode20=Caps_Lock

keycode21=

keycode22=

keycode23=

keycode24=

keycode25=

keycode26=

keycode27=EscapeEscape

keycode28=

keycode29=

keycode30=

keycode31=

keycode32=spacespace

keycode33=Prior

keycode34=Next

keycode35=End

keycode36=Home

keycode37=Left

keycode38=Up

keycode39=Right

keycode40=Down

keycode41=Select

keycode42=Print

keycode43=Execute

keycode44=

keycode45=Insert

keycode46=Delete

keycode47=Help

keycode48=0equalbraceright

keycode49=1exclamonesuperior

keycode50=2quotedbltwosuperior

keycode51=3sectionthreesuperior

keycode52=4dollar

keycode53=5percent

keycode54=6ampersand

keycode55=7slashbraceleft

keycode56=8parenleftbracketleft

keycode57=9parenrightbracketright

keycode58=

keycode59=

keycode60=

keycode61=

keycode62=

keycode63=

keycode64=

keycode65=aA

keycode66=bB

keycode67=cC

keycode68=dD

keycode69=eEEuroSign

keycode70=fF

keycode71=gG

keycode72=hH

keycode73=iI

keycode74=jJ

keycode75=kK

keycode76=lL

keycode77=mMmu

keycode78=nN

keycode79=oO

keycode80=pP

keycode81=qQat

keycode82=rR

keycode83=sS

keycode84=tT

keycode85=uU

keycode86=vV

keycode87=wW

keycode88=xX

keycode89=yY

keycode90=zZ

keycode91=

keycode92=

keycode93=

keycode94=

keycode95=

keycode96=KP_0KP_0

keycode97=KP_1KP_1

keycode98=KP_2KP_2

keycode99=KP_3KP_3

keycode100=KP_4KP_4

keycode101=KP_5KP_5

keycode102=KP_6KP_6

keycode103=KP_7KP_7

keycode104=KP_8KP_8

keycode105=KP_9KP_9

keycode106=KP_MultiplyKP_Multiply

keycode107=KP_AddKP_Add

keycode108=KP_SeparatorKP_Separator

keycode109=KP_SubtractKP_Subtract

keycode110=KP_DecimalKP_Decimal

keycode111=KP_DivideKP_Divide

keycode112=F1

keycode113=F2

keycode114=F3

keycode115=F4

keycode116=F5

keycode117=F6

keycode118=F7

keycode119=F8

keycode120=F9

keycode121=F10

keycode122=F11

keycode123=F12

keycode124=F13

keycode125=F14

keycode126=F15

keycode127=F16

keycode128=F17

keycode129=F18

keycode130=F19

keycode131=F20

keycode132=F21

keycode133=F22

keycode134=F23

keycode135=F24

keycode136=Num_Lock

keycode137=Scroll_Lock

keycode138=

keycode139=

keycode140=

keycode141=

keycode142=

keycode143=

keycode144=

keycode145=

keycode146=

keycode147=

keycode148=

keycode149=

keycode150=

keycode151=

keycode152=

keycode153=

keycode154=

keycode155=

keycode156=

keycode157=

keycode158=

keycode159=

keycode160=

keycode161=

keycode162=

keycode163=

keycode164=

keycode165=

keycode166=

keycode167=

keycode168=

keycode169=

keycode170=

keycode171=

keycode172=

keycode173=

keycode174=

keycode175=

keycode176=

keycode177=

keycode178=

keycode179=

keycode180=

keycode181=

keycode182=

keycode183=

keycode184=

keycode185=

keycode186=

keycode187=acutegrave

keycode188=commasemicolon

keycode189=minusunderscore

keycode190=periodcolon

keycode191=

keycode192=numbersignapostrophe

keycode193=

keycode194=

keycode195=

keycode196=

keycode197=

keycode198=

keycode199=

keycode200=

keycode201=

keycode202=

keycode203=

keycode204=

keycode205=

keycode206=

keycode207=

keycode208=

keycode209=

keycode210=plusminushyphenmacron

keycode211=

keycode212=copyrightregistered

keycode213=guillemotleftguillemotright

keycode214=masculineordfeminine

keycode215=aeAE

keycode216=centyen

keycode217=questiondownexclamdown

keycode218=onequarteronehalfthreequarters

keycode219=

keycode220=lessgreaterbar

keycode221=plusasteriskasciitilde

keycode222=

keycode223=

keycode224=

keycode225=

keycode226=

keycode227=multiplydivision

keycode228=acircumflexAcircumflex

keycode229=ecircumflexEcircumflex

keycode230=icircumflexIcircumflex

keycode231=ocircumflexOcircumflex

keycode232=ucircumflexUcircumflex

keycode233=ntildeNtilde

keycode234=yacuteYacute

keycode235=oslashOoblique

keycode236=aringAring

keycode237=ccedillaCcedilla

keycode238=thornTHORN

keycode239=ethETH

keycode240=diaeresiscedillacurrency

keycode241=agraveAgraveatildeAtilde

keycode242=egraveEgrave

keycode243=igraveIgrave

keycode244=ograveOgraveotildeOtilde

keycode245=ugraveUgrave

keycode246=adiaeresisAdiaeresis

keycode247=ediaeresisEdiaeresis

keycode248=idiaeresisIdiaeresis

keycode249=odiaeresisOdiaeresis

keycode250=udiaeresisUdiaeresis

keycode251=ssharpquestionbackslash

keycode252=asciicircumdegree

keycode253=3sterling

keycode254=Mode_switch

相关推荐