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!

Disable Confirmation When Closing

Status
Not open for further replies.

inutelinside

Technical User
Apr 28, 2005
41
US
Whenever I try to close a window browser using "window.close()" I'm receiving the following message:

The Web page you are viewing is trying to close the window.
Do you want to close this window?

I want the closing of the window to be automatic. Is there a way to disable this confirmation using javascript? Any idea would be greatly appretiated. Thank you very much.
 
You can't. Its a security thing. Imagine working on a form and someone closes your browser without your knowledge.


____________________________________
Just Imagine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top