JavaScript Confirm method before Exit the page

You could try using the confirm method on the onUnLoad event:

if (confirm("Are you sure you want to leave) == true){
return true;
}else{
return false;
}

1 comment:

  1. Hello! Today, absolutely everyone without exception can get into an unforeseen situation related to the law. But if you turn to a good lawyer, there is a huge chance that the issue will be resolved in your favor. I have a lawyer in mind, Paul Mankin https://www.paulmankin.com/.

    ReplyDelete