Revision: 13636
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 30, 2009 02:15 by hotdiggity
Initial Code
<script language="javascript" type="text/javascript"> function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); if ((evt.keyCode == 13) && (node.type=="text")) { return false; } } document.onkeypress = stopRKey; </script>
Initial URL
http://www.mediacollege.com/internet/javascript/form/disable-return.html
Initial Description
Initial Title
Prevents the return key from submitting the form.
Initial Tags
forms
Initial Language
JavaScript