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

Changing to a new page in the parent window when i close the subwindow

Status
Not open for further replies.

thendal

Programmer
Aug 23, 2000
284
Hai!

My problem is iam having a popup window which will ask some questions and when they have finished .I need to close the popup window and make the parent page(where the pop up window appeared) to link to the home page or some location.

I hope i have conveyed my problem

I tried with (where window.opener.close() will close the page but i need to point to a location)

window.opener.location.href=index.html it didn't work

help me...


 
Try using window.opener.location.href="index.html"

I've done the same things using a window with frames talking to a main window with frames, and I use the following:

parent.opener.parent.library.location.href

Where library is the target frame in the main window.

Let me know if that works,

Mike Lundin
dante@orst.edu
 
It worked .Thank you very much mike.

actually i used
i wrote a function

function opener()
{
window.opener.location.href='index.html';
window.close();
}

which will close my sub window as well as i will point to the other location thanks

Mike.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top