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

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -