I am tracking the window close/navigation event thru following code.
window.onbeforeunload = winClose;
function winClose() {
if (isDataChanged) {
return "Are you sure you want to close?";
}
}
This obviously will popup a confirmation with OK / Cancel. when the browser is closed.
Here i want to call an event after OK / Cancel is pressed. How to do that?