1. The user opens the my web application in the browser.
2. minimizes the browser and works on excel or notepad or any other application.
3. As the user is not operating on my web application, after 5 idle mintues a popup will be opened with session warning message.
4. Here as the focus is on another application other than browser the popup is not coming to foreground, it just getting blinked in the taskbar.
So i need to bring the popup window to foreground , so that user will get noticed and saves his work in my application.
I tried using the focus method on popup window ,but still facing the same issue....
Jeanne Boyarsky wrote:Also, 5 minutes seems like a very short timeout.
I had given 5 mintues as an example. Here we are configuring session Timeout as 60 mins. So Warning window would display after 55 idle minutes.
Jeanne Boyarsky wrote:
You can't. If the browser doesn't have focus, you can't bring it to the front. That is for the user's protection. If I went to a webpage that could constantly interrupt other apps, that would be bad.
What you mentioned is absolutely right. It looks good for some public websites,but here the user is expecting the immediate attention .
In C# i had come across a function SetForegroundWindow which forces the window to move to foreground. Are we not having similar functions in javscript?