window.focus() not working?
-
A Former User last edited by
I open a new window (win) in a new tab from javascript and do win.focus() but it doesn't get focus! What's wrong and what's the solution. How can I switch focus from the present tab to the new one from javascript?
-
burnout426 Volunteer last edited by
Same issue in Chrome and other browsers? Maybe https://stackoverflow.com/questions/2758608/window-focus-not-working-in-google-chrome will help.
Hard to say without a JS demo showing the problem.