Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- IE 5+ default form submit on Enter Key Press
January 19, 2005, 5:46 am
rate this thread
Through experimentation, it occurred to me that, when there is
only one textbox, pressing the ENTER key submits the
form. If I have two or more, it won't do this.
Is there a way in HTML (or other mean, such as script)
to disable this?
I have scripts that run on the keypress
events of certain buttons. Having to roll the functionality
into an onSubmit() event of the form is really going to be