This is very annoying problem when you are programming with IE8 and using sharepoint .We are working with custom layout pages coding and this problems occured and waste our valuable time.
When navigating away from a publishing page that is in edit mode the browser displays “Saving Page Content…” in the status bar which can take up some time (about 15 sec) to complete before asking for confirmation to not save the page.There were no such error with either IE7 or FireFox.
SBN_CallBackHandler() client function of SaveBeforeNavigationControl is not called as it supposed to. It looks like the implementation of XMLHttpRequest object in IE8 is somehow different from the previous release
Solution: There are three different solution
1) Change IE8 configuration parameter
Click -> tools -> Internet Options -> Advanced (tab) and uncheck
Enable native XMLHTTP support (checked by default)
(This solution not worked with me but some blogs say thats ok )
\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES\PublishingConsole.ascx
and remove this component.
<PublishingWebControls:SaveBeforeNavigationControl id=”sbn1″ runat=”server”>
< / PublishingWebControls:SaveBeforeNavigationControl>
And also did not work for me !!
document.body.onUnload = “”;
Thats all folks…