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

IE 5 window won' t close without prompt!!

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
Hi does anyone know how to disable the following IE message when trying to close a window (window.close)?:

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

thanks!
 
no you cant disable this as it's a security matter
now perform a search in this forum and in the jscript one, using "window close prompt" or something like that as keywords - you'll get plenty of answers detailing that secuity issue for you
 
thanks pepperpepsi and iza,

I'm going through the recommended readings right now and they look quite helpful.
only difference is i'm opening the asp page that i want to close from asp [vb]script rather than from client script.
 
sweetleaf,

You can't do it in the server side, you have to use Javascript to close the window, for example

Response.Write(&quot;<Script>window.close()</script>&quot;)

hope this helps, Chiu Chan
cchan@gefmus.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top