<script type="text/javascript"> window.onbeforeunload = confirmExit; function confirmExit() { return "Do you want to leave this page without saving?"; }
<script type="text/javascript" language="javascript"> window.onbeforeunload = function() { var Ans = confirm("Are you sure you want change page!"); if(Ans==true) return true; else return false; }; </script>
window.onbeforeunload = function() { return 'Are you sure you want to leave this page?'; };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)