title: Jquery: how to check if a newly opened window  has been fully loaded? / window loads an external page (like www.yahoo.com)
body: <p>the following doesn't work , why ? </p>
  
  <pre><code>var myWindow=null;
  myWindow = window.open(targetUrlVar,"_blank","resizable=yes");
  $(myWindow).load(function(){
      alert('hello');
  });
  </code></pre>
  
  <p>Though MyWindow is a Window reference, no check is performed to see whether or not it has been fully loaded. i thought <code>$(window).load(...)</code> would work here for "window " being replaced by "MyWindow".</p>
  
  <p>the following works: </p>
  
  <pre><code>$(myWindow).load(function(){
      alert('hello');
  });
  </code></pre>
  
  <p>for targetUrlVar being an internal resource (like a  page belonging to my domain) it works.. 
  but as soon as i wanted to used the <code>.load()</code> or <code>myWindow.onload()</code>  with  a <code>targetUrlVar</code> being an external page (such as www.yahoo.com or www.google.com ), it doesn't work any more...
  No alert is displayed.. </p>
  
  <p>i need you help... thank you everyone </p>