window.focus() not working for getting focus on already opened tab
I have a tab.On clicking a button on that tab a new tab opens and focus is on the newly opened tab.Now again going back to first tab and clicking on the button doesn't shift my focus to the second tab.
Modified by ankitkrchy
Additional System Details
- User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Please continue in your original thread :