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

close a browser window automatically

Status
Not open for further replies.

webmast

Programmer
Dec 21, 2001
57
IN
Hi,

help me out with this.........

I am trying to create a website. When the user types out the address in the normal browser window(base) an new window(child) opens according to my specifications of width, height, toolbars, etc.. automatically...

This is basically an intranet application which looks like a normal desktop application if you leave out the base browser window.Now window(base) is useless so I want to close it automatically after few seconds how can this be done...

I tried putting in the onload function which is instrumental in bringing out the child window a closing operation, window.close() but the problem is that it brings out a alert stating :" The Page you are viewing is trying to close this window" and then we click yes to close...I dont want this to happen...I want it to close automatically and user must not be bothered and the user doesnt know that the base window has closed.


Thanx ...

pri..
 
I'm pretty sure you can't close the parent without the user confirmation, only windows opened programatically by the original window. This is a security measure and I've never heard of a way to overcome it, but I might be wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top