Disable prompt when auto-closing browser window

Disable prompt when auto-closing browser window

Post by tberr » Fri, 26 Sep 2003 11:15:38


Is there anyway to disable the message:

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

that appears when trying to close a parent window after
launching another window, or using "window.opener.close()"
from the child window?

Thanks
T
 
 
 

Disable prompt when auto-closing browser window

Post by brentserbu » Sat, 27 Sep 2003 04:05:09

From
http://www.yqcomputer.com/
Prompt Window Closing
Q: Waqas wants to stop the confirmation dialog box that sometimes pops up
when closing a window through script.

A: There is no way to prevent this behavior. Invoking the window.close
method on a window not opened with script, or on the last running instance
of Internet Explorer will trigger a confirmation dialog box. This is good
behavior from a user perspective. If someone has opened an Internet Explorer
window to do something and a site suddenly closes it, they are going to be
frustrated. If you want to close the window at the end, then open a window
specifically for your application.


-----
Brent Serbus [MSFT]
-----
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.

 
 
 

Disable prompt when auto-closing browser window

Post by Steve Fult » Sat, 27 Sep 2003 08:46:54


http://www.yqcomputer.com/

So the gaping hole that allows this behavior in IE (window.opener is read/write
instead of read-only) is a bug and not a flawed design decision by MS?

--
Steve

You can't wake a person who is pretending to be asleep. -Navajo proverb