I need to be able to capture the event when a user closes their browser (by selecting the X or a file>>close). I am only concerned with IE, so if it IE specific, its OK. I have looked at the onUnLoad() event and the onBeforeUnLoad(), but these fire when you go to another page and even refresh. I need something that will capture the browser being closed and fire an event. The event will basically open a browser window and run a script.
I have looked around, and can find nothing referring to this. Is there a way to accomplish this? and if not, why not?