This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two focused window at the same time

William Wang
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my project, I have a server running at localhost, javascript will send a request to localhost server which will open a Dialog window. The problem is I want the new Dialog window to get the focus, but what it happened is both browser (firefox) and dialog get the focus at the same time. I say that because both window's title bar is in clear blue. If I click the Dialog, then firefox lose focus, i.e. the title bar becomes gray. Is there a way to ask other windows on the platform to lose focus?

After experimenting more, looks like the problem is that dialog didn't get focus at all, but I used setAlwaysOnTop(), so it appeared to be focused.

Thanks for any suggestions.
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic