title: window.onunload not working in IE 9/10/11?
body: <p>The below code works fine in IE8.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>window.onbeforeunload = function () {
  
      return  "Are you sure want to LOGOUT the session ?";
  }; 
  
  window.onunload = function () {
  
      parent.logout();
  };
  </code></pre>
  
  <p>But in IE9+</p>
  
  <p><code>window.onbeforeunload</code> works and I am getting the alert.</p>
  
  <p>But the <code>window.onunload</code> is not working.</p>
  
  <p>I also tried the <code>Group Policies in Internet Explorer 9</code> to enable the <code>Allow Internet Explorer 8 Shutdown Behavior</code>.For reference , <a href="http://social.msdn.microsoft.com/Forums/ie/en-US/7b27de5f-d080-4470-a375-6f3c5d793f85/unload-not-sending-data-in-ie9?forum=iewebdevelopment" rel="nofollow noreferrer">click here</a></p>
  
  <p>How to make the <code>window.onunload</code> to work in IE9+ ?</p>
  
  <p>Hope our stack users will help me.</p>