title: When passing data from parent to child with window.open, why do I get 'Cannot read property 'elements' of undefined'?
body: <p>Bear with me, I've new to Javascript.</p>
  
  <p>Here's my parent script:</p>
  
  <pre><code>var title = document.title;
  var url = window.location.href;
  var popForm;
  
  function get_elements() {
      formObject = popForm.document.forms["link_form"];
      formObject.elements["id_title"].value = title;
      formObject.elements["id_url"].value = url;
      }
  
  function bookmark() {
  
      popForm = window.open("form.html","aWindow","height=500,width=400");
      popForm.window.onload=get_elements()
  
      }
  </code></pre>
  
  <p>And my child just look slike this:</p>
  
  <pre><code>Title:&lt;/br&gt;     
  &lt;input id="id_title" type="text" name="title" maxlength="50" /&gt;
  &lt;/p&gt;
  Description:&lt;/br&gt;
  &lt;textarea id="id_descrip" rows="10" cols="40" name="descrip"&gt;&lt;/textarea&gt;
  &lt;/p&gt;
  Url: &lt;input id="id_url" type="text" name="url" maxlength="100" /&gt;
  &lt;/p&gt;
  &lt;input type="submit" value="Submit" /&gt;
  </code></pre>
  
  <p>I'm trying to create a little 'share' bookmarklet but cannot pass the data from the parent document to the popup's elements.  The error in Chrome's console is <code>Uncaught TypeError: Cannot read property 'elements' of undefined</code></p>
  
  <p>What am I missing?!</p>