NOTE: I'm using .Net and IIS 7 for the server.
I'm trying to display a warning to the user while download is in progress and the user tries to close the browser. I can display the warning using the "windows unload" event in JavaScript, however, I'm trying to unhook this event once download (or upload for that matter) is complete. My dilemma is that the event to warn the user persists even though the upload/download is long complete. Any ideas how I could determine when download is complete so that I could unhook this event? Would appreciate any advice!