JS gets the instance code for the value of any key on the keyboard
- 2020-03-29 23:42:29
- OfStack
Without further ado, go straight to the code
function keyUp(){
if(navigator.appName == "Microsoft Internet Explorer"){
var keycode = event.keyCode;
}else{
varkeycode = keyUp.caller.arguments[0].which;
}
alert(keycode);
}