Feedback on: irt.org FAQ Knowledge Base Q1179, September 16, 2001 at 11:38:41:
You are here: irt.org | About | Feedback | 3166 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q1179
Sent by
Lawrence Impey on September 16, 2001 at 11:38:41:
Comments:
The Enter Key is the default keyboard shortcut for a submit button so try the following:
<html>
<head>
<script language=JavaScript>
</script>
</head>
<body>
<form method=post name=form_name action=test.pl>
<input type=text size=20>
<input type=text size=20>
<input type=text size=20>
<input type=button value=Submit onClick="submitForm();">
</form>
</body>
</html>
Basically, we are replacing the submit button with a standard button and using JavaScript to submit the form when the button is pressed.
The enter key will still submit the form, but ONLY if the submit button has the focus (i.e. the user has tabbed onto the button).
Unfortunately I think IE 4.0.72 has some problems with using javascript to submit a form.
Other feedback on 'irt.org FAQ Knowledge Base Q1179' - show all
- irt.org FAQ Knowledge Base Q1179 - June 05, 2007 at 19:44:00
- irt.org FAQ Knowledge Base Q1179 - Maarten Hogendoorn April 12, 2007 at 10:53:10
- irt.org FAQ Knowledge Base Q1179 - yo September 26, 2002 at 10:01:55
- irt.org FAQ Knowledge Base Q1179 - J. Scott Fabling March 11, 2002 at 23:59:36
- irt.org FAQ Knowledge Base Q1179 - Jonno Smith October 07, 2001 at 23:28:47
- irt.org FAQ Knowledge Base Q1179 - Lawrence Impey September 16, 2001 at 11:38:41
- irt.org FAQ Knowledge Base Q1179 - angus beare July 10, 2001 at 06:18:29
- irt.org FAQ Knowledge Base Q1179 - Angus Beare July 10, 2001 at 06:00:26
- irt.org FAQ Knowledge Base Q1179 - smk May 02, 2001 at 10:26:55
- irt.org FAQ Knowledge Base Q1179 - dirk December 11, 2000 at 12:45:55
- irt.org FAQ Knowledge Base Q1179 - Rich Yessian November 26, 2000 at 22:31:45
- irt.org FAQ Knowledge Base Q1179 - Brian October 30, 2000 at 11:58:35
- irt.org FAQ Knowledge Base Q1179 - Gary Ackerman October 17, 2000 at 17:28:15
- irt.org FAQ Knowledge Base Q1179 - tom May 05, 2000 at 21:58:10
- irt.org FAQ Knowledge Base Q1179 - David Cooper September 29, 1999 at 04:02:33
©2018 Martin Webb