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!

Do you want to close the window

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
we want to close the current window and if we write
window.close()
sometime it asks for DO you want to close this window?
how can i avoid this
 
You can't, and the 'sometimes' happens when you try to perform a window.close() on the main window .. a security feature of IE and Netscape is to ask the user if that is what they want to do. If your script creates the window then you will be able to close it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top