mklsww
Last Updated: February 25, 2016
·
884
· djalmaaraujo

How to alert users on unload the page

window.onbeforeunload = Call;
function Call() {
    return "Put some question here?";
}

// This will not print the message on firefox (the message appears in chrome, safari, Opera and IE)