Voriki
Voriki

Reputation: 1637

How to make browser window come from background to foreground with JavaScript

I'm making a browser-based alarm clock, and users should be able to preset one of the following to occur when the timer reaches 0:

The second one is the problem. I figure I can make a "_blank" link be activated when 0 is reached, but popups suck, and the user'd have to close it as well. What would be really nice is if the window with the alarm clock could be come the active one. How could that be done?

Also I know that people don't like to have windows appear and interrupt their work, which is why it's left as an optional thing.

Thanks

Upvotes: 0

Views: 610

Answers (1)

Halcyon
Halcyon

Reputation: 57709

You have no control over this behavior. You can not do it, and I would insist that you do not even try.

Upvotes: 1

Related Questions