JS pergunta antes de perto
window.onbeforeunload = function() {
return "";
}
FloatDev
window.onbeforeunload = function() {
return "";
}
<script>
window.onbeforeunload = function (e) {
e = e || window.event;
// For IE and Firefox prior to version 4
if (e) {
e.returnValue = 'Sure?';
}
// For Safari
return 'Sure?';
};
</script>