Is it possible, as IE does in Windows Update, to ask onbeforeunload if
the user want really close window (or tab) clicking on close (X) of the
window?
This window isn't opened by window.open.
I think something like this:
<script type="text/javascript">
window.onbefore unload = function(){
if (confirm('Reall y want to go away?')){
this.close();
} else {
return null
}
}
</script>
But it doesn't work.
Any help?
Thx
--
Fabri
("Sono più di 30 punti...ma è come se fossere 8 o 9....")
the user want really close window (or tab) clicking on close (X) of the
window?
This window isn't opened by window.open.
I think something like this:
<script type="text/javascript">
window.onbefore unload = function(){
if (confirm('Reall y want to go away?')){
this.close();
} else {
return null
}
}
</script>
But it doesn't work.
Any help?
Thx
--
Fabri
("Sono più di 30 punti...ma è come se fossere 8 o 9....")
Comment