D
David
I have some script in a 'parent' page that maintains an array of
'child' browser (IE 6) windows that it has opened. In response to
user actions I cause windows to gain focus and come to the front of
all other windows. From trial and error I have seen that success in
focusing a window depends on the type of content it displays. For
example, when the window contains HTML, text or JPG's this approach
works fine. Other MIME types--xml, PDFs, Word, Excel, etc.--fail to
allow the window to be focused. The reason seems to be that the
'window.closed' attribute is set 'true' when this type of content is
displayed even though the browser is still open. Once window.closed
is set 'true' it appears that the focus() call has no affect. Can
someone explain why these MIME types cause the 'closed' attribute to
be set 'true'? Is there any way I can get around this?
Thanks!
'child' browser (IE 6) windows that it has opened. In response to
user actions I cause windows to gain focus and come to the front of
all other windows. From trial and error I have seen that success in
focusing a window depends on the type of content it displays. For
example, when the window contains HTML, text or JPG's this approach
works fine. Other MIME types--xml, PDFs, Word, Excel, etc.--fail to
allow the window to be focused. The reason seems to be that the
'window.closed' attribute is set 'true' when this type of content is
displayed even though the browser is still open. Once window.closed
is set 'true' it appears that the focus() call has no affect. Can
someone explain why these MIME types cause the 'closed' attribute to
be set 'true'? Is there any way I can get around this?
Thanks!