title: Can't get elements of child window after window.open()
body: <p>I opened a child window by using window.open() in jquery.</p>
  <pre><code>var child = window.open(&quot;http://localhost/example.html&quot;);
    console.log(child);
    console.log(child.document);
  </code></pre>
  <p>when I check the console logs, it returns empty <strong>DOM-elements</strong></p>
  <p>I almost tried everything but nothing changes.</p>
  <p>check the img pls haha</p>
  <p><a href="https://i.stack.imgur.com/Mz3PI.png" rel="nofollow noreferrer">Console log Img</a></p>
  <p>So the goal is to open an html file in new window as child and save it as image file by Html2canvas!</p>
  <p><strong>All I need is to get child window's elements!</strong></p>
  <p>Things I tried :</p>
  <pre><code>child.document.getElementById(&quot;myDiv&quot;)
  </code></pre>