Title: RE: RE: Witango-Talk: Tango stops processing in the middel of a presentation page.

Very simple solution:

 

1)       Don’t have a type=”submit” input element

2)       Have more than one type=”text” input element on the page

 

If you only need one text input box, then you could throw this in the form and it will work:

 

<input type="text" name="dummy" style="display:none">

 

Good luck,

Cory Whitsett

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dave Shelley
Sent: Wednesday, June 12, 2002 12:27 PM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: Enter submits form

 

I don't recall if this has been discussed before, but in IE pressing the Enter key will submit a form. Is there an easy way to prevent this from happening?

 

Maybe an onSubmit handler to check the last key pressed or button clicked and the type of the object in focus and return false if the Enter key was pressed on anything other than a submit button. How would you get the last keystroke of click value?

 

Thanks.

Dave Shelley

Reply via email to