You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

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

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.
CAUSE
This issue occurs because of a Loosely Coupled Internet Explorer architectural change in Internet Explorer 8.
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
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.
IE8 window.focus minimized Protected Mode LCIE flashing in taskbar
Properties

Article ID: 979954 - Last Review: 03/30/2010 17:18:21 - Revision: 1.0

  • Windows Internet Explorer 8
  • kbexpertiseinter kbsurveynew kbprb KB979954
Feedback
>