I want to prevent the page loading when “Editing” on m page occures.
so i got this code
window.onbeforeunload = function() {
return "Are you sure you want to navigate away?";
}
Now i need to unbind this from the page.
is there any methods available ?
Thank you.
You set the handler to null: