I am writing a plugin for CMS (umbraco) and I want to attach a warning dialog box to various actions on the page, one such action is clicking a link (javascript links), in most browsers the following code works well
$(".propertypane").delegate("a, a div", "click", function () { window.onbeforeunload = confirmNavigateAway; });
IE has a problem because IE fires the onbeforeunload event when any link is clicked, even if the link does not move.
Here I gave an example: http://jsfiddle.net/DETTG/8/
Note. I do not control ajax controls in the property area, they are written by third parties.
source share