Menu
I have this:
<html>
<head>
<script type=”text/javascript”>
function finishOff() {
confirm(“You want to see your changes?”);
}
</script>
</head>
<body onUnload=”finishOff()”>
</body>
</html>
If you run it, you can see that the browser window is closed before the confirmation pop up. Now the problem is that my user needs information on the scrren to help them to make decisions, and I want the confirmation window pop up befor the window is closed.
Is this doable in JavaScript?