I want script to open in new tab url without focusing on it. I tried:
window.open("https://www.google.com/").blur();
window.focus();
But it opens a new tab and focuses on google.com not on site with script. What's wrong?
edit:
This Open a new tab in the background? is not resolving my question. Answer is too old and doesn't work anymore! Admins please read bold text: UPDATE: By version 41 of Google Chrome, initMouseEvent seemed to have a changed behavior, and so this answer no longer works.