It's not a secret anymore!*
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "window.focus() -- unusual problem.." Watch "window.focus() -- unusual problem.." New topic
Author

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..

-v
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: window.focus() -- unusual problem..
 
Similar Threads
Focus on the window
Focus on child window after parent window gets refreshed
Kiosk Mode..
keeping pop up window active until clicked
switching focus between a parent and child window?