Capture close event of document browser

I am opening doc from a aspx page using:
doc.Save(“output.doc”,SaveFormat.Doc, Aspose.Words.SaveType.OpenInBrowser, this.Response);
Now I need to capture the close event when user closes this browser by clicking the cross button at the corner of the browser.
Help.

Hi
Thanks for your inquiry. Aspose.Words does not control browser windows opened on client side. Aspose.Words is component for creating and edition Word document.
I think you can try using javascript to achieve this. Maybe this could be useful:
http://codingforums.com/showthread.php?t=37279
Best regards.