title: How to add script files in child window using javascript?
body: <p>How to add script files in child window using javascript?</p>
  
  <p>Consider the following code:</p>
  
  <pre><code>myWindow = window.open("", "", 'width=650,height=700,menubar=yes,resizable=yes,scrollbars=yes');
  myWindow.focus();
  myWindow.document.write('&lt;script src="'+App.data.assets_url+'\/javascript\/jquery.js"&gt;&lt;\/script&gt;');
  </code></pre>
  
  <p>Above code doesn't work properly in IE. It shows blank (child) window, but in chrome it works properly. It shows all the content of the child window.</p>
  
  <p>In Mozilla it's not working properly too because of above <code>myWindow.document.write</code> line browser's print option.</p>