Window.opener.close()

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
sandy1028
Forum Commoner
Posts: 60
Joined: Thu Jul 26, 2007 3:56 am

Window.opener.close()

Post 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.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post 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.
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply