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 (David Yee)
  • Subject: [Javascript] Press enter submits form
  • Date: Mon, 26 Aug 2002 11:28:27 -0700

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C24D2E.5E8E1780
Content-Type: text/plain;
	charset="iso-8859-1"

Hi all- how do I use javascript to submit the form (or press a particular
button) when the enter key is pressed?  This form can have multiple buttons.
Thanks.
 
David

------_=_NextPart_001_01C24D2E.5E8E1780
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=666272918-26082002><FONT face=Arial size=2>Hi all- how do I use 
javascript to submit the form (or press a particular button)&nbsp;when the enter 
key is pressed?&nbsp; This form can have multiple buttons.&nbsp; 
Thanks.</FONT></SPAN></DIV>
<DIV><SPAN class=666272918-26082002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=666272918-26082002><FONT face=Arial 
size=2>David</FONT></SPAN></DIV></BODY></HTML>

------_=_NextPart_001_01C24D2E.5E8E1780--