Shiv Om Sharma
asked on
how to disable onbeforeunload on form submission
I want to implement onbeforeunload on tab close but want to disable onbeforeunload on form submission :
$('input[type="submit"]'). on("click" , function (e) {
window.onbeforeunload = function() {};
$(window).unbind('beforeun load');
});
does not work.
it still shows leave confirmation message
$('input[type="submit"]').
window.onbeforeunload = function() {};
$(window).unbind('beforeun
});
does not work.
it still shows leave confirmation message
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.