shakkir3435
shakkir3435

Reputation: 133

Bring the browser to the front of all window/application in php or javascript

I am developing a page in php and javascript and I need to be able to notify the user if they didn't submit the page within 10 minutes, for this to work I need to bring the browser in front of all other applications running on the machine.

Is there any possibility that this can be done?

Upvotes: 0

Views: 1936

Answers (3)

Chandra Sekhar Walajapet
Chandra Sekhar Walajapet

Reputation: 2554

ok, without html5 and that too user confirming the security popup, its impossible to bring the window on to front, atleast on IE it used to show a blink when there is a popup, but in chrome each runs on a seperate process and you wont even notice a blink too.

and well its not a mobile though, where you can use push notifications from the server to bring your app back

Upvotes: 0

Louis Huppenbauer
Louis Huppenbauer

Reputation: 3704

If you're users are willing to install a script you could try growl. You could then use the javascript api to create some notification.

Upvotes: 0

ThiefMaster
ThiefMaster

Reputation: 318468

Luckily you usually cannot do that. :)

PHP is a server-side language so it cannot do something like this for obvious reasons.

All you can do is call window.focus(); in JavaScript and hope it's not disabled in the user's browser - in Firefox it is disabled by default for example.

Upvotes: 1

Related Questions