[thelist] Default Form Submit Button

Michael Pemberton mpember at phreaker.net
Sun Aug 5 09:18:47 CDT 2001


I think the most compatible way of doing this is to capture the key press for
"enter" and stop the event from reaching the browser.  You can then direct
this to trigger the second / third image as needed.

Hershel Robinson wrote:

> HTML gurus,
>
> I have a FORM with three INPUT TYPE=IMAGE elements in it.  When the user
> presses the Enter key in one of the TEXT inputs, naturally the first image
> input is triggered.  As a matter of fact, its onclick event is actually
> triggered, too.  What I want, however, is for the third button to be
> triggered.
>
> I don't want to change the order of the buttons, because logically, they
> belong where they are.  How can I make the third one the default button?
>
> Thanks,
> Hershel
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !

--
Michael Pemberton
mpember at phreaker.net
ICQ: 12107010







More information about the thelist mailing list