[thelist] javascript: submit on enter

me me at cgiguy.com
Tue Oct 30 18:30:30 CST 2001

There is a really cool site http://www.irt.org

All kinds of examples to do anything with javascript and
lots of other stuff.


----- Original Message ----- 
From: George M <martin at prispop.com>
To: <thelist at lists.evolt.org>
Sent: Tuesday, October 30, 2001 4:18 PM
Subject: [thelist] javascript: submit on enter

> I have the following code:
> <form name="perf">
> <input name="blah"></input>
> <input type="button" value="go" onClick="perfIt(this.form);"></input>
> </form>
> when a user hits 'enter', the form submits to the same page and nothing
> happens.  how do i execute the 'perfIt' function when a user hits the
> 'enter' key from the first input bar (without clicking the button)?
> Thanks!
> gkm
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list