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

Q1065 Form does not submit on enter

irt.org | Knowledge Base | JavaScript | Bugs | Q1065 [ previous next ]

Q1065 Form does not submit on enter

Symptom: Pressing enter in a form with single input field does not submit the form if there is any other input field on the page even in a different form.

Affects: msie 3.x

Workaround: None that I know of.

The following was submitted by Robert de Bruin

Symptom: Pressing enter in a form with single input field does not submit the form if there is any other input field on the page even in a different form.

Workaround: try adding a <INPUT TYPE="image"> tag within the form. Although this may not make sense, it works on my forms

<FORM ACTION="test.php" METHOD="post" NAME="login">
<INPUT TYPE="text" NAME="username" VALUE="">
<INPUT TYPE="password" NAME="password" VALUE="">

<A HREF="javascript:document.login.submit()">log in</A>
<INPUT TYPE="image" SRC="./images/blank.gif">
</FORM>

Feedback on 'Q1065 Form does not submit on enter'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.