Simple JavaScript code to display confirm alert before a page getting closed.
JavaScript Code:
JavaScript Code:
<script type="text/javascript"> window.onbeforeunload = function (e) { return "Are you sure you want to close?"; } </script>
No comments:
Post a Comment