Connecting Tech Pros Worldwide Help | Site Map

close() not working in Mac IE 5.2

Alan Little
Guest
 
Posts: n/a
#1: Jul 23 '05
The window.close() method apparently does not work in Mac IE 5.2. I've used
it with no problem in the "big 3" browsers on Mac and Windows, including
Mac IE 5.0, but now in 5.2 it doesn't work. Has anyone else encountered
this? Is there a fix or workaround available? Am I just missing something?
Why is the sky blue? What's it all about, Alfie?

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Grant Wagner
Guest
 
Posts: n/a
#2: Jul 23 '05

re: close() not working in Mac IE 5.2


Alan Little wrote:
[color=blue]
> The window.close() method apparently does not work in Mac IE 5.2. I've used
> it with no problem in the "big 3" browsers on Mac and Windows, including
> Mac IE 5.0, but now in 5.2 it doesn't work. Has anyone else encountered
> this? Is there a fix or workaround available? Am I just missing something?
> Why is the sky blue? What's it all about, Alfie?[/color]

How was the window you are trying to close opened? You can only close a window
that has no history and (or?) was opened by JavaScript. It's possible Microsoft
fixed a hole that allowed you to close a window you didn't open.

Are you _sure_ the code you have is working as written in other browsers?

--
Grant Wagner <gwagner@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Alan Little
Guest
 
Posts: n/a
#3: Jul 23 '05

re: close() not working in Mac IE 5.2


Carved in mystic runes upon the very living rock, the last words of
Grant Wagner of comp.lang.javascript make plain:
[color=blue]
> Alan Little wrote:
>[color=green]
>> The window.close() method apparently does not work in Mac IE 5.2.
>> I've used it with no problem in the "big 3" browsers on Mac and
>> Windows, including Mac IE 5.0, but now in 5.2 it doesn't work. Has
>> anyone else encountered this? Is there a fix or workaround available?
>> Am I just missing something? Why is the sky blue? What's it all
>> about, Alfie?[/color]
>
> How was the window you are trying to close opened? You can only close
> a window that has no history and (or?) was opened by JavaScript. It's
> possible Microsoft fixed a hole that allowed you to close a window you
> didn't open.[/color]

It's a popup opened by code in the main page. It has no history (though
that's never been a problem before, either)
[color=blue]
> Are you _sure_ the code you have is working as written in other
> browsers?[/color]

Sure. I've tested this very application in IE, NS and Opera on Windows,
and IE and NS on OS9. In fact, I didn't even become aware of the problem
until I upgraded my Mac to OSX/IE5.2 earlier this week.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Closed Thread