/ Published in: JavaScript
send in the event to get the key code useful with onKeyPress javascript event
Expand |
Embed | Plain Text
function getKeyCode(e) { code = -1; if (window.event) code = e.keyCode; else if (e.which) code = e.which; return code; }
You need to login to post a comment.
