Re: window.focus() -- unusual problem...
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: window.focus() -- unusual problem...

From: Touffy <tffy@free.fr>
Date: Sun Apr 30 2006 - 02:52:54 CEST

On 2006-04-27 19:16:17 +0200, Frances <fdr58@yahoo.com> said:

> when a window is minimized you can only see top blue bar (where HTML
> title goes..) if possible I'd like that to blink (I tried having text
> scroll across that area, but this is not a solution for XP, where
> browser windows are stacked and you won't see the text scrolling..)
> essentially I would like roughly same behavior as normal desktop IM
> apps.. don't know if this is possible with browser windows..

What you ask is impossible with JavaScript, unless maybe IE allows some
IE and Windows-specific code with all security options deactivated.
Besides, may I ask what you had planned for non-IE or non-XP users who
don't have a Windows(tm) XP taskbar anyway ?

What you can do cross-platform is open() a notification popup and
quickly close() it. Of course, there are pop-up blockers now...
Another option is to play a sound to notice the user, provided he can
decode the sound file, has speakers, etc.
Actually you should implement both methods and let the user choose,
letting them know on the same occasion that they should let your
pop-ups through.

-- 
David Junger
Received on Mon May 1 05:27:25 2006