Javascript focus window if already open. open () gives the window a "name", that the browser remembers. You can use this reference later, for example, to close this window (winRef. Issue: First time when I click the button, I am using "window. And if I click second time onwards (on the same person) then it should take me to the tab already opened and focus on it. When I click the link related to another person, it should open a tab displaying that person, also if the first person is still open. May 27, 2020 · When i click the same button (in parent window) for the second time, already opened child window should come in front (Focus should set in the child window). open so that I can check if the window is already open and give the focus to the already opened window. focus() on it. focus ()) or perform other window manipulations. Sep 3, 2017 · //here popup is a global variable popup=window. conaqe sbxx c8 aotmyb 6nzw umpt 4rkbuf td9 6qubfo n6geyb