www.webdeveloper.com
Results 1 to 1 of 1

Thread: Enter key wont submit form on Chrome/IE but does on Firefox

  1. #1
    Join Date
    Oct 2006
    Posts
    203

    Enter key wont submit form on Chrome/IE but does on Firefox

    Anyone know what up with this??:

    Code:
    <form id="form1" action="find-a-doctor" method="post">
    ....
    ...
    
    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
    theForm = document.form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
    theForm.__EVENTTARGET.value = eventTarget;
    theForm.__EVENTARGUMENT.value = eventArgument;
    theForm.submit();
    }
    }
    //]]>
    </script>
    Code:
    <input type="submit"  id="main" class="btn-submit" " value="" name="Search">
    
    ....
    ..</form>
    The class had the graphic bg...again its fine in FF but in Chrome/IE7+ ....I also tried <button type...............
    Last edited by riskmod; 06-12-2012 at 02:13 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles