Hi Jerry,
The javascript code will always make the same behavior whether it is ran in
the same or different machines. I think the cause is the different settings
in the Internet Options of IE. You can compare the two IEs' settings or
click the "Reset" button in the "Internet Options/Advanced" tab to reset
IE's settings to their default condition. Thus, the minimized window would
pop up and jump to the front.
--
Sincerely,
Zhi-Qiang Ni
Microsoft Online Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
MSDN Managed Newsgroup support offering is for non-urgent issues where an
initial response from the community or a Microsoft Support Engineer within
2 business day is acceptable. Please note that each follow up response may
take approximately 2 business days as the support professional working with
you may need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
--------------------
| Thread-Topic: window.focus()
| thread-index: AcpzW+5RLa1Tz7dzSl+jMsLnW5FSdg==
| X-WBNR-Posting-Host: 207.219.52.250
| From: Jerry Zhao <***@community.nospam>
| Subject: window.focus()
| Date: Wed, 2 Dec 2009 06:30:01 -0800
| Lines: 14
| Message-ID: <1C832628-3353-4F1B-8047-***@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325
| Newsgroups: microsoft.public.scripting.jscript
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.scripting.jscript:4103
| NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
| X-Tomcat-NG: microsoft.public.scripting.jscript
|
| I have seen different behaviors of window.focus() on different machines,
both
| running Windows XP:
|
| Machine 1: If the window is minimized, then the window will pop up and
| become the foreground window. If the window is just hidden behind other
| windows, then its icon on the task bar will just flash several times but
the
| window itself will not jump to the front.
|
| Machine 2: Regardless whether the window is minimized or behind other
| windows, the window will always pop up to the front.
|
| Why the different behaviors? Is there any way to change/customize these
| behaviors?
|
|