Re: Suppressing carriage return in a form action??

by Berk/Devlin <armadill(at)>

 Date:  Wed, 04 Jul 2001 10:44:44 -0700
 To:  Jesse Houwing <j.houwing(at)>
 Cc:  hwg-techniques(at)
 References:  earthlink
  todo: View Thread, Original
Cool.  Guess I could check for Javascript and do this and if they don't have Javascript, do the confirmation thing.


At 04:19 PM 7/4/01 +0200, Jesse Houwing wrote:
>>On Wed, 13 Jun 2001 10:05:28 -0700, I asked:
>>>I have a form ( and my users are accidentally submitting it prematurely by pressing <ENTER> to go to the next field when they should be pressing tab.  
>There is a easy javascript solution that just disables the <eter> key for a form. It doesnt need to check all the fields or anything.
>just include:
>onsubmit="return false;"
>in the form tag
>   onclick="this.form.submit;"
>in the <input type=submit> tag.
>works like a charm

On the web at *** Armadillo Associates, Inc.
~             Project management, developer relations and 
extremely-technical technical documentation that developers find useful.~


HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA