Steve Nelson
<HTML>
<HEAD>
<SCRIPT LANGUAGE="_javascript_">
function testForEnter()
{
if (event.keyCode == 13)
{
event.cancelBubble = true;
event.returnValue = false;
}
}
</SCRIPT>
</HEAD>
<BODY>
<FORM id="FORM1" name="FORM1" method="GET" action=""> style="background-color:yellow">
<H3>Form1: Does not stop form submission when user presses ENTER key.</H3>
<INPUT id="text1" name="text1">
<INPUT type="submit" value="Submit">
</FORM>
<FORM id="FORM2" name="FORM2" method="GET" action=""> style="background-color:lightblue">
<H3>Form2: Stops form submission when user presses ENTER key.</H3>
<INPUT id="text2" name="text2" > <INPUT type="submit" value="Submit">
</FORM>
</BODY>
</HTML>
-----Original Message-----
From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 2:02 PM
To: CF-Talk
Subject: SOT: form submission
How does one keep a form from submitting when a user presses ENTER?
(Only want them to submit from the button...)
Cutter
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]