IE 5+ default form submit on Enter Key Press

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a form that has one textbox control and one textarea.

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
a pain.

Re: IE 5+ default form submit on Enter Key Press

Quoted text here. Click to load it

Validate server side.  If there is data missing, then return them to the
calling page.

Adrienne Boswell
Please respond to the group so others can share

Site Timeline