File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes window.focus() -- unusual problem.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "window.focus() -- unusual problem.." Watch "window.focus() -- unusual problem.." New topic

window.focus() -- unusual problem..

Veronica Damian
Ranch Hand

Joined: Feb 04, 2006
Posts: 61
this is for a browser window that contains a chat app that is an applet... when browser window is not in focus I would like users to somehow get notified when a message arrives, more or less like regular IM apps do.. I did with window.focus(), but I don't really want window to come into focus, I just want it to 'blink' and then stay highlighted.. I tried window.setActive() method (not sure what that method does but wanted to try it) but I get obj-non-supported error in IE6 with that method.. would appreciate any suggestions.. thank you very much..

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
window.focus() is really the only thing that you could use.

Could use those classic title scrollers that could scroll the titlte of a browser, but that will not really help.

I agree. Here's the link:
subject: window.focus() -- unusual problem..
It's not a secret anymore!