[thelist] javascript: submit on enter

George M martin at prispop.com
Tue Oct 30 18:17:30 CST 2001


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







More information about the thelist mailing list