[Javascript] Q on wondow.focus()

SMartin at neopostonline.com SMartin at neopostonline.com
Thu Mar 28 08:37:37 CST 2002


It's not just IE 6.0.  Windows 2000 and Windows XP both have options that
will limit the way an active window can take control of the desktop.  The
old default behavior was to bring a window requesting priority to the top.
The new deault behavior is to indicate that the window wants attention by
flashing the task bar button corresponding to the program.  This is so that
while you're typing away in, say, MS Word, a random process doesn't suddenly
pop a window to the top, causing you to mistype/lose data/etc.

-Stephen

-----Original Message-----
From: Dan Costea [mailto:costea.dan at ssi-schaefer.ro] 
Sent: Thursday, March 28, 2002 11:32 AM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Q on wondow.focus()


The behavior of the window.focus() is depending of the IE version. Until
IE6, window.focus() did bring the window in the front; IE6 is not bringing
the window in the front, it just flash it's name on the status bar. Probably
Microsoft took this decision because of security reason. And I don't think
there is a way to bring the window in the front with IE6.

Dan.


----- Original Message -----
From: "Walter Torres" <walter at torres.ws>
To: <javascript at LaTech.edu>
Sent: Wednesday, March 27, 2002 8:28 PM
Subject: [Javascript] Q on wondow.focus()


> I would like to have a way to force a window forward, top most, 
> whenever a user clicks off the window I popped up.
>
> I did this in the new window...
>
>     <body onblur='window.focus()'>
>
> and...
>
>     <body onblur='self.focus()'>
>
>
> All this did was make the button on the START bar (that represents the
> window) flash. The window did not come forward.
>
> Any ideas?
>
> And I can't use modalDialog or modelessDialog, unless you know of a 
> way
for
> these window types to accept reply data from a submit process.
>
> Walter



More information about the Javascript mailing list