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
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
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()">