Depending on the foreground application window, it could move itself
up. Here's a little list :
Yes : other Internet Explorer windows, Outlook windows.
No : Excel, Word, Notepad, Textpad, Netscape, ......
So I think, it's safe to conclude that in general case it's
impossible to move a window to foreground. Actually, personally, I'm
happy
with this because it's very impolite and especially disturbing for a
window
to popup without user intervention. We'll make it up when we decide to
do
so.
> -----Message d'origine-----
> De : Scott.Thomas@g...
> [mailto:Scott.Thomas@g...]
> Envoy=C3=A9 : mercredi 12 f=C3=A9vrier 2003 15:13
> =C3=80 : javascript
> Objet : [javascript] RE: How to move a window to the foreground of
the
> sc reen?
>
>
> var oWshShell =3D new ActiveXObject("WScript.Shell")
> oWshShell.AppActivate "Your Window Title Goes Here (case
> sensitive and
> include the ' - Microsfot Internet Explorer' aswell"
>
> The above code activates the window but its advisable to set
> the focus
> after aswell.
>
> The reason being that if the window is minimsed then
> activating makes no
> difference but the set focus will flash the window in the task bar.
>
> If the window is not minimsed then it brings it to the fore ground
>
>
>
> Scott Thomas
> Developer Gala Leisure
>