Friday, 12 September 2014

Document onkeydown get keyCode in javascript

document.onkeydown = myKeyDownHandler;
function myKeyDownHandler(event){
      alert(event.keyCode)
}

No comments:

Post a Comment