views:

27

answers:

1

if I create a popup in JavaScript I can access its properties:

var myWin = window.open("test.htm");
myWin.property1;

but my question is, can I access properties/methods of parent window from the child?

+1  A: 

Yes. Just do window.opener, this will get you access to the parent window. For example, to refresh the parent window, you can do

window.opener.location.refresh();
Alex
wow that is almost to easy. I feel like I should of already known that. Thanks.
Kenneth J