Search code examples
htmlinternet-explorersubmitform-submitenter

Why doesn't enter work when submitting a form in IE6?


(I just finished developing my new site and I am testing if it works in all browsers. I need everything to be perfect.)

I have a form:

<form action="example.php" method="post">
<input type="text" name="example">
<input type="submit" name="button" value="Submit">
</form>

Everything in this form works fine in Chrome, Opera and FF, But in IE6 it doesn't. When I press enter, it doesn't do anything. The form doesn't get submitted. So I have to go over to the submit button with my mouse and click it if I want to submit.

Is there any way to fix it?


Solution

  • Check for Javascript that might be preventing you from achieving the expected behavior.

    And please, consider dropping support for IE 6. IT IS ALREADY 10 YEARS OLD!!!!!!