Click here to Skip to main content
16,018,818 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am working on a single page application using angularJS which will work on Intranet. One of the requirement is after every 15 min i have to forcefully show a message to the user even if it he is working on some other program and once he click on OK button automatically that browser tab need to be shown. this functionality need to work on IE11/IE Edge/Chrome/Mozilla firefox.

Is there any workaround for this?
Is there any other good solution?

I have priority for IE/Edge.


Thanks in advance.

What I have tried:

when i tried Javascript alert box with chrome it works as expected but when i tried it with firefox and IE it highlight the tab. unless user goes to that tab alert box doesn't shown up.
Posted
Updated 7-Mar-16 1:56am
Comments
I am afraid, if this is a default behaviour, then you won't be able to do anything.
Sinisa Hajnal 7-Mar-16 4:18am    
There is nothing you can do. If the alert box is not shown by default, you have no control over it. What you could try is to open modal dialog over the browser and force the user to look at it.

1 solution

As mentioned in the comments, no, there is no way to do this except for creating a plugin for each browser you want to support. Browsers are moving away from allowing developers to force users certain ways for security reasons.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900