Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Close Browser Windows

0 views
Skip to first unread message

Bob Barrows [MVP]

unread,
Feb 18, 2006, 10:56:37 AM2/18/06
to
Marx wrote:
> Any ideas appreciated..
>
> Is it possible to close a browser window opened by the user without
> displaying the message "The web page you are viewing is tring to
> close the window. Do you want to close this window?"

It's not supposed to be. In fact, in quite a few browsers, it isn't
possible, due to the potential for for malicious activity this ability
raises.

However, if you google this, I'm sure you will find out that IE exposes a
loophole: assigning any string to the window.opener property fools IE into
thinking the script that is running is the script that opened the window.

In the next version of IE this loophole will be closed.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Marx

unread,
Feb 18, 2006, 4:36:30 PM2/18/06
to
Clear Thanks.
--
Thanks Marx
0 new messages