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

Refresh Parent Window after Child Window Closes

Status
Not open for further replies.

jalbao

Programmer
Joined
Nov 27, 2000
Messages
413
Location
US
ok i know that there are other threads that talk about how to close a parent window after a child window closes, but i have a situation that that has a little twist to it. the following describes what i would like to happen:

1. i have a parent window open a popup window.
2. i want the popup window to close automatically after 120 seconds. (currently i implement onLoad="window.setTimeout('this.close()', 120000);" to do this)
3. after the popup closes i would like the parent window to refresh.

without going into details as to why, i can't use the onunLoad="window.opener.reload()" in order to implement step #3.

the kind of solution that i'm looking for would go something like this:

1. once the popup window opens start a countdown starting at 120 seconds.
2. if the countdown gets to zero, then close the popup window and then refresh the parent window.

thanks for any advice or pointers that you may be able to give.




 
Try:

function bailout(){
opener.location.reload();
self.close();
}

change this:
onLoad="window.setTimeout('this.close())

to this:
onLoad="window.setTimeout(bailout())" cquick@callingpost.com
Geographic Information System (GIS), ASP, some Oracle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top