Enter to reliably submit html form

Posted by taw on Stack Overflow See other posts from Stack Overflow or by taw
Published on 2010-05-26T13:35:58Z Indexed on 2010/05/26 13:41 UTC
Read the original article Hit count: 247

Filed under:
|

I have a form with text input + gradient-shaded button with onclick='this.form.submit()' (plus some hidden inputs).

In all browsers, clicking on the button works.

In Firefox, if I click Enter while in text input, it submits the form. In IE, it does nothing.

How can I make it work with IE?

© Stack Overflow or respective owner

Related posts about html

Related posts about msie