It is possible but I strictly recommend you to not use this feature.
You can simply
atach alert function to onunload event handler on BODY tag for example.
<script type="text/javascript">
function myReminder(){
alert("Do you save the changes?");
}
</script>
</head>
<body onunload="myReminder();">
But it is very irritatingli for some users and not good decision about
crossbrowser compatibility.
libsfan01 написа:
hi all how can u create a conditional alert when the user tries to
close the window or enters another url into the browser? i want to
remind them to save changes.