Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Javascript window.focus() is not working in IE8 and Windows XP SP03

$
0
0

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. Don't minimize the Internet Explorer window, focus on this IE window, then change to focus on another window which is not IE window. the Window.focus method does not return this Web page to the foreground of the screen in windows XP SP3 rather than blink in the tool bar . This issue occurs only in windows xp sp3. For Win 7 OS, it works well. It should return this Web page to the foreground of the screen

The sympton differ from what the link

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

 described. Since I didn't minimize the target window.

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. change to another windows like office excel or word.... and wait for about five seconds.
  4. In win7 OS, it can bring the IE page back. But for windows XP sp3, it only blink in the tool bar, could not bring the IE page front


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>