Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q1179

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.