2013-09-02 08:28:36 +00:00
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
2016-08-03 19:44:18 +00:00
|
|
|
// Only prevent unload on the first window close
|
|
|
|
var unloadPrevented = false;
|
2013-09-02 08:28:36 +00:00
|
|
|
window.onbeforeunload = function() {
|
2016-08-03 19:44:18 +00:00
|
|
|
if (!unloadPrevented) {
|
|
|
|
unloadPrevented = true;
|
|
|
|
return false;
|
|
|
|
}
|
2013-09-02 08:28:36 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|