title: window.onbeforeunload not firing in IE8 (works fine in Firefox, Chrome, and Safari)
body: <p>So I have been going crazy trying to figure out why the following is not firing off in IE 8 but working in the "big 3", Firefox, Chrome, and Safari</p>
  
  <p>(From inside a Javascript function)</p>
  
  <pre><code>var popupWindow=window.open(document.location.href+kugiri+"popup_flg=1", 'mypopup','width=640,height=480');
  
  
  popupWindow.onbeforeunload = function() {
      changeVideoPlayback(true);
      if(someFalseVal)
          return "oy";
      else
          return ;
  };
  </code></pre>
  
  <p>(Note most of this code was just a desperate attempt to get IE to work, I really only want the </p>
  
  <pre><code>    changeVideoPlayback(true);
  </code></pre>
  
  <p>part to fire off.  What am I doing wrong that makes IE just refuse to execute the onunload whenever the window closes?</p>
  
  <p>I should also add that I have tried onunload as well, no dice.</p>