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

ASP - How to close child window when timeout occurs

Status
Not open for further replies.

MICMAC

Programmer
Jan 26, 2001
3
BE
Application Intranet - ASP.
From my homepage, users can open a child window (window.open()). How to close automatically this child window if timeout occurs ?
In my global.asa, I redirect users to a page called redirect.asp when timeout occurs. What are the instructions to put in it to close the child window and make a Refresh of my homepage.
 
Simple :
window.your-window.close(); Regards

Big Dave


** If I am wrong I am sorry, but i'm only trying to help!! **

 
You'll want to check it is a window that was opened with Javascript by using opener.

window.opener is boolean -returning true if it is a pop-up window.

So you would write that to your page - and also opener.document.location.reload()...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top