Click to See Complete Forum and Search --> : window.opener question


gauravg77
10-21-2003, 11:43 AM
Hi,

If I have a popup window B whose opener is A.

Now B makes A refresh by:

parent.opener.location.href=<blah>
(there are 2 frames in B, thats why: parent)

After A refreshes, is the opener relationship lost?
This is because I get the error "parent.opener has no properties", when I try to refresh the opener (A) again.

Is there a workaround for this? How cn I refresh or invoke any other method on the opener window again?

Thanks
Gaurav

requestcode
10-21-2003, 12:31 PM
I believe if you are not targeting a specific frame then opener.location.href="blah" should work. If you are specifying a specific frame then it should be:
opener.parent.frame_name.location.href="blah"