Keycode Checker Tool
09
July
2013

To Know the Keycode of keyboard paste the below code in head section of your html page

document.onkeydown = checkKeycode

function checkKeycode(e) {
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
alert("keycode: " + keycode);
}
  • 954 View
  • Pin It