window.focus() not working for some MIME types

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top