title: window.onload DOM loading in popup, browser compatibility
body: <p>I have HTML popup window and i want add text after opening window with spec. function:</p>
  
  <pre><code>var win = window.open('private.php', data.sender_id , 'width=300,height=400');                      
  win.window.onload = function() {
           //function for add text
           //chrome and firefox fire, IE and Opera not
  };
  </code></pre>
  
  <p>This work perfectly with Chrome and Firefox, but Opera and IE9 won't working. Please tell me 
  best way to do that with IE and Opera.
  I try with:</p>
  
  <pre><code>$(document).ready(function(){
     //function for add text
  });
  </code></pre>
  
  <p>but same thing.</p>
  
  <p>I found solution, but i wont know is there better solution then setTimeout???</p>
  
  <p>Instead onload event i use:</p>
  
  <pre><code>setTimeout(function(){
   //add text
  },200);
  </code></pre>