Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

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

©2018 Martin Webb