-2
That function that captures mouse movement does not work , what is wrong in it how to fix ?
<script>
$(document).bind("mouseleave", function(e) {
if (e.pageY - $(window).scrollTop() <= 1) {
alert('Tem certeza que quer fechar a aba? :(');
}
});
</script>
Thank you, Wéllingthon M. de Souza !
– PauloMaia