assuming the following:
windowHandle=window.open('path/to/document');
You can interact between both windows.
You have a pointer to a window object from the document in which it was opened using the variable name:
//doSomething has to be known inside the new window
windowHandle.doSomething();
and from the document in a new window to a window opening a new window using opener-property:
//doSomething has to be known inside the window that opened the new window
opener.doSomething();