So, in my application the user can export their work to excel.
It works by opening a popup window (window.open(...)) which the parent then writes the data to a form, then posts the form back to the server.
The server generates the file, and streams it back down to the popup window where a download dialog appears. It also writes a cookie with a token.
This token, is unique to each download popup window, and when a window sees that cookie (Checking regularly) it closes itself with window.close() as the user has received the file download prompt.
This works great in IE7 and IE8
However, because IE9 decided to get rid of the dialog and replace it with an infobar, the window closes before the user can take action to download, and if they do click it, they never know when it's done without opening the downloads dialog manually.
As a temporary solution, the popup is no longer closed.
However, I want to be able to close it for the user as once their download has started it's completely useless to them.
How can I close this window and still be able to alert the user in IE9 that their download is complete and can be opened?