Page 1 of 1

Window.opener.close()

Posted: Tue Oct 16, 2007 4:59 am
by sandy1028
Hi,

I get the message as

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

when new window opens.

How to avoid this message.

Posted: Tue Oct 16, 2007 9:43 am
by VladSun
If it is "a parent" window (i.e. not a "child" of any other window) you can't avoid it (at least with the most popular browsers). You can close only child windows.