Return to Snippet

Revision: 857
at August 16, 2006 06:00 by gux


Initial Code
function kH(e) {
var pK = e ? e.which : window.event.keyCode;
return pK != 13;
}
document.onkeypress = kH;
if (document.layers) document.captureEvents(Event.KEYPRESS);

Initial URL
http://www.felgall.com/jstip43.htm

Initial Description
added to the head section of the page

Initial Title
Disable the Enter Key in Form

Initial Tags
javascript

Initial Language
JavaScript