Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Press enter submits form


  • From: javascript@xxxxxxxxxx (Harry Love)
  • Subject: [Javascript] Press enter submits form
  • Date: Mon, 26 Aug 2002 13:44:48 -0700

<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