[Javascript] Press enter submits form

Harry Love hlove at u.washington.edu
Mon Aug 26 15:44:48 CDT 2002


<snip>
Hi all- how do I use javascript to submit the form (or press a
particular button) when the enter key is pressed?
</snip>

David,
I think (and someone please correct me) that the [enter] key is already
the default keystroke for submitting a form, so no need for a script
there.

<snip>
This form can have multiple buttons.
</snip>

I'm confused by this statement.  Are you saying you have multiple submit
buttons, or multiple buttons that should be associated with the [enter]
key, or something else?  Please explain.

Harry




More information about the Javascript mailing list