Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Break into Frames 1

Status
Not open for further replies.

Linnq

Programmer
Oct 24, 2003
13
CA
I've opened a window outside of the frameset, now from that window I need to open a new page within the frameset and close the pop up.

onClick="javascript:window.opener.open('Tips.html','Tips')

I've tried various combos of "window.opener.top.parent.FrameName" with no luck.

Any help is greatly appreciated.
 
Dan,
I just tried window.opener.top.FrameName but it still throws an error, "Object doesn't support this property or method".

Thanks though.
 
First, get rid of the "javascript:" in any onclick events. It's not needed.

If you want the new page to be within your frameset, then within your popup use:

window.open('newPage.html','frameName');
window.close();

If you want the new page to replace your frameset, use:

window.opener.top.location.href='newPage.html';
window.close();

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life=life-1};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top