Version 2

Internet Explorer IE submit when you press enter key | submit on enter

For some reason IE will not submit a form when you are missing a submit button or when you have a submit button with a display of hidden or the button inline css on it.

Here is the fix for that:

<input style=”border:0; width:0; height:0″ type=”text” size=”0″ maxlength=”0″  />

Add this before input=”submit” , and Enter key works in MSIE.

There is a ton of java out there and even jquery has a fix for this but the code above will work. I hope this helps.

Comments are closed.

  • Categories

  • Client testimonials

    "There is nothing that Intricate Web can't do. I came to Intricate with the idea of creating a very simple, blog-based site. By the time the site was finished, we had created an interactive, dynamic website that allowed us to spread word about our business quickly and effectively. And, Intricate completed the site on time and for less than a quarter of the cost of other web companies."
    Andrew Hunt | Scholars for Students
    <?php

    echo “Are you a Web Designer”;
    echo “Intricate Web can provide”;
    echo “White label Development”;
    echo “for your design firm.”;
    print “Outsource locally”;
    // comment - it’s our little secret.

    ?>
    © 2012 Intricate Web LLC
    Call us today! 401.709.4469