Click to See Complete Forum and Search --> : Changing frame in original window from pop up window
SABuddy
03-10-2003, 08:00 PM
:)
Hi,
I am trying to figure this out and was given the following as a hint: window.opener.frame[] I would appreciate any help. Basically, the idea is to create a pop up window and then have a link/button in the pop up window that changes a frame in the original window.
Thanks,
Riva
SABuddy
03-10-2003, 08:13 PM
Thank you much!
:-)
Riva
SABuddy
03-10-2003, 08:21 PM
It doesn't work for me. My code is:
window.opener.top.toc1.location.href = "cookie1.htm";
??? Any ideas?
Thanks again,
Riva
SABuddy
03-10-2003, 09:11 PM
with top first and it didn't work so I tried the window first instead. I don't get any errors, it just doesn't change.
Riva
khalidali63
03-11-2003, 01:01 AM
Add the following line in your popup window
<a href="javascript:top.opener.nFrame.window.location.href='http://www.cnn.com';self.close();">Open CNN in parent Frame</a>
In th code above I assume that frame in which the cnn.com will open is named "nFrame", just change this to appropriate frame name and you should be in action..
:-)
Oh BTW, I have tested it,and works.
Cheers
Khalid
SABuddy
03-11-2003, 08:16 AM
I will give it a try.
:-)
Riva