Is there any way to check if the person's mouse is going to close the site? With JavaScript, etc ... In the simplest case:
if(estaindofechar){
alert("Tem certeza?");
}
Is there any way to check if the person's mouse is going to close the site? With JavaScript, etc ... In the simplest case:
if(estaindofechar){
alert("Tem certeza?");
}
This is the method called when the user tries to exit the page
window.onbeforeunload = function(e) {
return confirm("Você tem certeza que deseja fechar a página?");
};