| 12:56 am on May 17, 2003 (gmt 0)|
Welcome to WebmasterWorld, Bodge.
window.opener certainly must be part of the picture here. It's the only way to address the original window from a new window.
I'm not clear about what you want to have happen that your third script isn't doing. It should set the frame you've called "main" to the page url.com - or whatever URL you put in there.
| 4:12 am on May 17, 2003 (gmt 0)|
OK, here's the full deal. The popup is opened from a nested frame, let's call it frame5. That frame is within a frameset that is inside another frame, frame2.
Frame5 (body) This frame opens the popup, but I want the link to target the whole of frame2. Right now it just opens in frame4 so it keeps they left and top frames from frameset2, which I don't want. Does it make better sense now? I want to basically replace frameset2 (yes, the entire frameset, I already have the info I need from that frameset and have no further need for it) with another page for frame2 (within frameset1).
| 5:45 pm on May 21, 2003 (gmt 0)|
OK, does anybody have any input on this topic for me? The basic need I have is to target an existing frame other than the one that opened it from a popup. So, frame C opens a popup window that has a URL that I want to target frame B. Any thoughts...?
| 5:50 pm on May 21, 2003 (gmt 0)|
Have you tried resetting parent.opener.location.href?
| 6:10 pm on May 21, 2003 (gmt 0)|
| 6:18 pm on May 21, 2003 (gmt 0)|
So, I ended up going away from using location.href and just using a straight href with a target command and then sticking on onClick within the A tag to close the popup which seems to work just fine. Though I would still like to know how to use the location.href to target a different frame...
| 11:49 am on May 22, 2003 (gmt 0)|
Though I would still like to know how to use the location.href to target a different frame...
You can target any frame, by working from the top down (from the outermost frameset) to the fame you wish to address. For example, window.frameName.location.href will change the address of the frame called frameName. parent refers to the parent frameset of the current frame, whereas using window goes to the very top and works it's way down.
| 12:21 am on May 23, 2003 (gmt 0)|
Which is what I thought, but it didn't work...
I used the following:
where the name of the frame I want to target is 'main' and it is within the top level frameset, so it should be window.main.location.href, right? Now, the popup originates from a frameset within the frame 'main', but Window should take me back up to the top, right?