add this to your page
<script>
function document.onkeydown(){
if (window.event.keyCode == 13){
alert("ENTER is not a valid key on this page");
return false;
}
}
</script>
only works with IE I think...sorry.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Jason Baird
Sent: Tuesday, December 02, 2003 11:16 AM
To: [EMAIL PROTECTED]
Subject: disable "enter" button submitting form
>I have a cold fusion form with a submit button for entering orders.
People in the field are constantly hitting the "enter" button before
finishing the form. When they hit "enter" it submits the form even though
they are not finished filling out the whole form.(which is normal I know,
but it is easier to change the code than get these people not to hit the
enter button before they are done.)
What are the various options to solve this issue? It should not submit when
they hit enter, but only when they click on the submit button.
Jason Baird
WebOutsourcing.com
http://www.weboutsourcing.com
214-570-8336
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe:
Send UNSUBSCRIBE to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe:
Send UNSUBSCRIBE to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org