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

self closing window

Status
Not open for further replies.

DCman

Programmer
Aug 24, 2000
1
US
I'm hoping this is an easy question.

How do I get a window to open and automatically close its self?...without getting the alert box.
 
Sorry Chris,
Where would that script be inserted?
I am a real newbie but this eems to be what I need to do. I have a loader page which onload calls up a second page fullscreen, so using this script can I close the loader after it executes the load fullscreen?

Hope this helps
John
 
If I understand correctly, in page 1 onLoad you do a window.open() to open page 2. To then close page 1 from page 2, do a window.opener.close() in page 2 onLoad.

However, you can't close a window which you haven't opened yourself without getting the alert box.

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top