Removing or Distinguishing what triggers and event in Javascript
===

It's a situation that I'm sure every web developer has encountered, but IE is not performing how I want it to. Currently the issue is that it's firing [onbeforeunload](http://msdn.microsoft.com/en-us/library/ie/ms536907%28v=vs.85%29.aspx) when the page is not unloading. I've already asked about this in [another question](http://stackoverflow.com/questions/11549856/ie9-firing-onbeforeunload-event-when-the-window-opens), and I've resolved any `document.write()` issues, any anchors and all the other ridiculous things that cause the page to "unload" according to Microsoft. That is, so far as I can tell. The event is still being triggered at times when it shouldn't be.

I'm wondering if there is any way I can flag what causes an event to trigger or to remove anything that would cause it to trigger that is a bit ridiculous. Either to prevent having to deal with it or to work around whatever may be causing the event to happen.

If the answer is a simple 'no' I'll hang my head and keep trying to work around this ridiculous browser, but I figured I'd try and pick the brains of an intelligent crowd before giving up.