title: VBScript to detect if user exits/quits out of Internet Explorer window
body: <p>I have a progress indicator implemented as a small IE window which my script (VbScript) launches. Outside of embedding a script in the HTML file, I am hoping for a way to detect if the user exits this window, so that I can 'clean up'.</p>
  
  <p>Is there any built in way, using VBScript (again, really hoping for not embedding script in the html), of detecting whether the user has exited this IE window? Currently, I am attempting to check for the non-existence of iexplore.exe, however this is proving to be a huge task due to the nature of this progress dialog, and it comes with too many risks to be acceptable. </p>