Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The Window.focus method does not work in Internet Explorer 8


View products that this article applies to.

Symptoms

You develop a Web page that uses the Window.focus method to set the focus on the Internet Explorer window. Then you browse this Web page in Windows Internet Explorer 8. After you minimize the Internet Explorer window, the Window.focus method does not return this Web page to the foreground of the screen. This issue occurs when you browse this Web page in a security zone that enables protected mode.

For steps to reproduce this issue, see the "More information" section.

↑ Back to the top


Cause

This issue occurs because of a Loosely Coupled Internet Explorer architectural change in Internet Explorer 8.

↑ Back to the top


Resolution

Security update information

To resolve this problem, install the most recent cumulative security update for Windows Internet Explorer. To do this, visit the following Microsoft Web site: For more technical information about the most recent cumulative security update for Windows Internet Explorer, visit the following Microsoft Web site: Note This update was first included in security update 980182 (MS10-018). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
980182� MS10-018: Cumulative security update for Internet Explorer

↑ Back to the top


More information

For more information about the focus method, visit the following Microsoft Web site:

Steps to reproduce this issue

  1. Construct the following Web page:
    <html><head>
    <meta http-equiv="refresh" content="5" />
    <title>this is a test page</title>
    <script>
    function foo()
    {
       window.focus();
    }
    </script>
    </head>
    <body onload="foo()">
    Hello World
    </body>
    </html>
  2. Browse the Web page in a protected mode-enabled security zone in Internet Explorer 8.
  3. Minimize the Internet Explorer window and wait for about five seconds.
In this case, the Web page is expected to return to the foreground of the screen. However, the page flashes in the taskbar instead.

↑ Back to the top


Keywords: KB979954, kbprb, kbsurveynew, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 979954
Revision : 1
Created on : 3/30/2010
Published on : 3/30/2010
Exists online : False
Views : 384