internet explorer - Javascript confirm box works in Chrome but not in Firefox and IE -


the following javascript works fine in chrome not in firefox or ie, in case, i'm executing in jquery ajax , ajax executed file echo code browser.

<script>   var con=confirm("well done, have made new sale. click ok proceed");  if(con==true) {   window.location.href="sales_supervisor.php";   }   else   {    return false;   }  </script> 

it working fine in chrome, not working in firefox , ie.

remove else condition , since return should used in functions...


Comments

Popular posts from this blog

node.js - StackOverflow API not returning JSON -

python - Subclassed QStyledItemDelegate ignores Stylesheet -

sql server - TFS 2012 TF255062 Error after removing 'Active Directory' Role -