I use this function to call on my window close.
This is the confirmation box popup window.
if(confirm("Sure you want to close the window");
{
// yes return to submit function
}
else
{
// no return to Other call function
}
window.onclose = function()
{
alert('yes');
}
On Close of window on the top right corner with X symbol I need to return false. I am trying to use this window.onclose
function but its not poping up.
Can anybody help me out?