I am facing a really weird situation with
window.focus(). Bascially the user is prompted with a confirm box after a certain amount of time of inactivity on the page. To get the window in focus, we are usign the
Below is the snippet of code:
Here is the weird behavior:
If the window where the code is minimized, it works fine. The window comes back into focus and the confirm box is displayed.
But, if the window where the code is placed inteh background using ALT+TAB, the code does not work. the window does not come back into focus. Instead, the taskbar icon blinks, indicating that some activity has occured.