I had a reason to look into this further just recently...
Well with the DOM, you can refer to a form field by "name" with the following structure:
Code:
document.formname.fieldname.value
To refer to the page which opened the popup window, you should instead use the following structure:
Code:
this.opener.formname.fieldname.value
If this is not enough information, an example would be
Code:
<a href="#" onclick="this.myform.submit();this.opener.location='newpage.html';this.close();return false">click here to submit, change the parent page to the url defined and then close this window</a>