[Javascript] How to turn off confirmation while my Javascript code is trying to close a browser window

Peter Brunone peter at brunone.com
Wed Jul 11 23:56:59 CDT 2001


	This is a built-in browser security feature.  You cannot close windows
without notification unless you have opened them programmatically (e.g. with
Javascript).

|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of shubhrajit_c
|Sent: Wednesday, July 11, 2001 11:54 PM
|To: javascript at LaTech.edu
|Subject: [Javascript] How to turn off confirmation while my Javascript
|code is trying to close a browser window
|
|
|Hi all,
|I have an HTML page in which the Javascript code tries to close
|the browser window on clicking a button. However , some browsers
|are asking for a confirmation from the user before closing the
|window.Why does this happen and how to prevent this?
|
|
|yours sincerely,
|Shubhrajit





More information about the Javascript mailing list