[Javascript] closing IE window using javascript

Peter Brunone peter at brunone.com
Tue Jan 11 15:17:45 CST 2005


   I would've thought it would work too, but maybe it's never been tested on Win98 (although I think IE 5.0 doesn't let you do this).
   All in all, if the window.opener workaround doesn't work, then I don't know of any other options.

Peter

 From: "Shawn Milo" ShawnMilo at runbox.com

If that worked, then wouldn't the OP have no problem?

Sorry, maybe I'm missing something. I re-read this thread,
but I don't see where the disconnect is. Regardless, as long
as the OP is happy, don't worry about me.

Shawn

> Actually, if you look at the code below, you'll see that this workaround *is* being used. It wasn't just IE, either; several other browser types/versions could be manipulated this way.
> 
> From: "Shawn Milo" ShawnMilo at runbox.com
> 
> You can't do it unless it's a window you opened with Javascript.
> 
> I think there was a work-around at one point, but it only works with
> certain versions of IE, and therefore mostly useless.
>
> Shawn
> 
> > Hi Everyone,
> > 
> > I am sorry if another thread already exists on this subject. Here is what I am trying to do. I want to close the IE browser with "window.close" method in Windows 98 FE. However, a security warning "The web page you are viewing is trying to close the window. Do you want to close this window? Yes|No " is popping up. Is there any possibility to close a window silently? I tried the following also, but it didn't help.
> > 
> > window.opener=top;
> > window.close();
> > 
> > On the whole, my html page is pretty simple - 
> > 
> > 
> > Close 
> > 
> > 
> > 
> > Thank you very much in advance,
> > Nalini.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050111/a8b9d83a/attachment.htm>


More information about the Javascript mailing list