mklsww
Last Updated: February 25, 2016
·
855
· djalmaaraujo
Be74fd9a577ea5ef1ab2e7c71bcfa4b5

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)
Say Thanks
Respond