title: why window.onload not fire in IE
body: <p>I have some code to open a popup, then resize the it via certain element on the popup page. The following code work fine in Chrome and Firefox, but not IE.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var newWin ;
      function openWindow(id) {
          newWin = window.open(url,config,setting);
          newWin.onload= function () {                     
                newWin.resizeTo(newWin.document.getElementById("certainID").offsetWidth,100);
          };</code></pre>
  </div>
  </div>
  </p>
  
  <p>In IE10 a popup will come but the <em>window.load</em> event will never fire.
  I also try <em>newWin.$(document).ready</em>  , but seems it is invalid.</p>
  
  <p>Any suggestion?</p>