title: onunload is not working without a call to function alert?
body: <p>Lets say I'm trying to do the following:</p>
  
  <pre><code>window.onunload = handleOnClose;
  
  function handleOnClose()
  {
      logout();
      // alert('You have been signed out.');
  }
  </code></pre>
  
  <p>It goes into the handleOnClose if I use the alert function. I don't want to alert any messages on unload. But it doesn't seem to go in the handleOnClose function at all if I remove the alert function.</p>