2
   function complete()
    {
     updateUserData(); 

     window.location = "/getans.php";
    }

    <input type="button"  id="finish" onClick="complete();" > 

Unable to redirect user to another page in IE..but it works fine in chrome and firefox

karthick prasad
  • 103
  • 2
  • 9

1 Answers1

4

Try this JSBin http://jsbin.com/coqinunacu/1/edit?html,js

document.createElement("input").complete

complete is an input property in IE, so simply renaming click handler will help

or you may also explicitly reference window.complete

<input type="button" value="click"  id="finish" onclick="window.complete()">
sbedulin
  • 4,102
  • 24
  • 34