How to access popup parent window elements with JavaScript
The JavaScript code to access parent windows elements is not a complex one. Indeed, all that is needed is the code
window.opener. The rest of the element can be addressed as per usual.
If you wanted to submit a form in the parent window for example, the following code would be used:
window.opener.document.myForm1.submit();
As mentioned the code
window.opener will access the parent window and
document.myForm1 will point to your form (in this case called myForm1) within the document, and then with the function
submit(), the information from the form is sent.