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

help how to locate parent window

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i need to have an application that has a parent window, then it will open another popup window, i know that use "window.opener" in the popup window, the window that opens it can be called. However, if the parent window go to another location, how the popup window refer to a website in the parent window. As use "window.opener", it cannot refer to the parent window anymore. Please help!

 
whatever the location, the parent window remains "opener"
just think of frames : whatever the location, their name remains the same (you target the NAME not the LOCATION)
 
If one of your frames/windows contains a url that is a different domain than the other you will not be able to get the url. This is called the "Same Origin Policy" and is part of Javascript security. You can access the window and/or frame, but NOT the location contained in it. There is another thread in this or the HTML and CSS forum that discusses this furthur. Search for "Same Origin".
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top