Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: auto form submit on ENTER key

  • Subject: Re: auto form submit on ENTER key
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Sun, 07 Aug 2005 04:23:59 +0100
  • Newsgroups: alt.html
  • Organization: schestowitz.com / Manchester University
  • References: <km7Je.335$ZG2.336369@twister.nyc.rr.com>
  • Reply-to: newsgroups@schestowitz.com
  • User-agent: KNode/0.7.2
ppcguy wrote:

> i've got a login page with name and password and
> would like the form to be submitted with the
> user presses on either of the two input fields.
> 
> it works if i do this
> 
> <INPUT TYPE="Submit" NAME="Submit" VALUE="Login">
> 
> but does not for this:
> 
> <INPUT TYPE="Button" NAME="Submit" VALUE="Login"
> onclick="onSaveClicked(this)">
> 
> help!!!

Why would you ever want to use the latter if the former works? The simpler
form gives you the correct behaviour by default...

Roy

-- 
Roy S. Schestowitz
http://Schestowitz.com

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index