const newWindow = window.open("www.google.com", "", "popup"); // A popup window should be opened covering the parent window
setTimeout(() => window.focus(), 3000); // How do you focus back parent window after 3 seconds?
I'm implementing a logout modal due to inactivity for about 30-minutes. Is it possible to gain focus on my window if a user is currently working on another window when the idle timeout is up? So the user can be reminded to continue the session or log out.