/ Published in: JavaScript
added to the head section of the page
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function kH(e) { var pK = e ? e.which : window.event.keyCode; return pK != 13; } document.onkeypress = kH; if (document.layers) document.captureEvents(Event.KEYPRESS);
URL: http://www.felgall.com/jstip43.htm