Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bring the Browser to the Front?

    I hope I'm just not seeing it:

    Is there any way to bring the browser window to the front of other Windows applications in SmartGWT?

    I know it sounds like a ridiculous question; here's why it's not:
    Specifically, if the user clicked on some other window bringing it "on top of" the browser, and a Real-Time Message comes in, I can show the information the user needs to see on top of other windows within the browser with bringToFront(), but the browser window itself can still be buried, with the app invisible to the user.

    What do you suggest?

    Thanks!

    #2
    Although the JavaScript method window.focus() works on some browsers, it's not really reliable - basically there is no totally reliable way to do this, but adding a window.focus() call is better than nothing, as it will likely work for a lot of users. More context here.

    Comment

    Working...
    X