[thelist] javascript: submit on enter

Bill Mason evolt at accessibleinter.net
Tue Oct 30 18:23:28 CST 2001

At 04:18 PM 10/30/2001, you wrote:
><form name="perf">
><input name="blah"></input>
><input type="button" value="go" onClick="perfIt(this.form);"></input>
>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)?

You could try adding onkeypress="perflt(this.form);" to the input tag.

Bill Mason
Accessible Internet
evolt at accessibleinter.net

More information about the thelist mailing list