window.onbeforeunload = function (e) { /* Getting flag value for Browser if it has been set to true or not */ /*if true show warning message*/ var evtobj = window.event ? event : e; if (evtobj == e) { if (!evtobj.clientY) { return "You have not saved your data. Do you really want to leave this page?"; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)