Hi, I have a web application that loads an ActiveX control. By default it is blocked by the browser. When the user explicitly allows the page, the html unloads and then reloads again. So basically the onunloadevent is fired even when the page is being refreshed to load the ActiveX control. And it would indeed be fired when the user closes the page. Can I through any means distinguish between these two unloads? Thanks for any help.