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?"
> 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

Signature
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 - 18 Feb 2006 21:36 GMT
Clear Thanks.

Signature
Thanks Marx
> > Any ideas appreciated..
> >
[quoted text clipped - 13 lines]
>
> Bob Barrows