title: Detecting the onload event of a window opened with window.open
body: <pre><code> window.popup = window.open($(this).attr('href'), 'Ad', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');
   $(window.popup).onload = function()
          {
                  alert("Popup has loaded a page");
          };
  </code></pre>
  
  <p>This doesn't work in any browser I've tried it with (IE, Firefox, Chrome). How can I detect when a page is loaded in the window (like an iframe onload)?</p>