title: How to get a dom element in a new window?
body: <p>A simple task in JavaScript is to open a new window and writing inside. But I need to write in a dom element, a div with an ID.</p>
  
  <pre><code>var novoForm = window.open("somform.html", "wFormx", "width=800,height=600,location=no,menubar=no,status=no,titilebar=no,resizable=no,");
  </code></pre>
  
  <p>Than I try something...</p>
  
  <pre><code>var w = novoForm.innerWidth;
  var h = novoForm.innerHeight;
  novoForm.document.getElementById("monitor").innerHTML = 'Janela: '+w+' x '+h;
  </code></pre>
  
  <p>I did it to see if the object "novoForm" is valid. But nothing is written in "monitor" div. I also try using onload event with no success. I'm wondering if it's some security restriction or am I missing something...</p>