Hi,
I need a script that when the user tries to close the browser it ask "Are you sure you want to close this window?"
I tried to write but when the user answers not it closes anyway.
This is what i have:
<script>
function close(){
var close=confirm("Are you sure you want to close this window?"
;
if (close)
return True;
else
return False;
}
Thanks in advance,
sbayter
I need a script that when the user tries to close the browser it ask "Are you sure you want to close this window?"
I tried to write but when the user answers not it closes anyway.
This is what i have:
<script>
function close(){
var close=confirm("Are you sure you want to close this window?"
if (close)
return True;
else
return False;
}
Thanks in advance,
sbayter