Forum Moderators: open

Message Too Old, No Replies

href in pop window

Has anyone any ideas on how to alter this so the page "whats_new.html" open

         

anubis

12:36 pm on Sep 12, 2002 (gmt 0)

10+ Year Member



Hi

I have a pop window which opens which has a link to a page on it.
I want to be able to have the link open in the parent window in a frame called content.
I have the following code which loads the link in the main site browser window but not in the frame I want , it just replaces the frame set with the link page.

"#" onClick="window.opener.parent.location='whats_new.html'

Has anyone any ideas on how to alter this so the page "whats_new.html" opens in the content frame.

Cheers

joshie76

12:47 pm on Sep 12, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



try

window.opener.parent.framename.location = ...

If however the frame you are trying to target is the frame that opened the window then this should be ok.

window.opener.location = ...