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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parent wont load new window.

Status
Not open for further replies.

keithcorbin

Programmer
Jan 24, 2002
19
US
I have a parent window creating a child that has multiple links. Each link should open in the parent window. This is working the first time, but the second time you click on a link the parent looks like it is opening (status at the bottom shows loading the correct page) but the page is never displayed, any ideas. Here is the code:

parent.opener.top.location.href="/jcpc/SearchResult.jsp?SubsId="+url;

parent.opener.focus();
 
parent is only used with frames. If you are using separate windows, use window.opener to refer to the window the popup came from.
 
I have fixed it for all interested, the first time I open the window the parent does have frames on the second click it does not. I end up setting the Parent name attribute on the first click and using that as a reference for window.open as you suggest after that.

-Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top