Disable Enter key on form

If you need to disable JavaScript on your form then apply the following code in the <head> tag.

<!–
<script language=”javascript” type=”text/javascript”>
function checkEnterkey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
if (evt.keyCode == 13) { return false; }
}
document.onkeypress = checkEnterkey;
</script>
–>

Tagged with:

Leave a Reply

Your email address will not be published. Required fields are marked *

*