Hello forums. Why is this code always returns true? :
function closeIt(){
if(confirm("Are you sure you want to close this window")){
return true;
}else{
return false;
}
}
</script>
<body onunload="closeIt()">
I'm trying to make a routine that will confirm the user if he wants to close the pop up window.
Thanks









Bookmarks