Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Browsers / Internet Explorer / February 2006



Tip: Looking for answers? Try searching our database.

Close Browser Windows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marx - 18 Feb 2006 13:59 GMT
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?"
Signature

Thanks Marx

Bob Barrows [MVP] - 18 Feb 2006 15:56 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.