title: JQuery Window.Opener
body: <p>twoI am trying to write back some values to a parent page and have written the following but it is saying that SCRIPT5007: Unable to get value of the property 'document': object is null or undefined </p>
  
  <pre><code>$('#Save').click(function () {
      var parent = $(parent.document.body);
      $(parent).find('input#addr_address1').val(addone);
      $(parent).find('input#addr_address2').val(addtwo);
      $(parent).find('input#addr_city').val(city);
      $(parent).find('input#addr_county').val(county);
      $(parent).find('input#addr_postcode').val(postcode);
      $(parent).find('input#addr_country').val(country);
      window.close();            
  });
  </code></pre>
  
  <p>Essentially the variables are set in another function and the values need to be sent back to a set of fields on the parent page.</p>
  
  <p>Any help would be awesome!</p>