When a visit your site it will auto create a new tab in the background that redirects to another site while the current tab is still on focused. How can I do this?
Asked
Active
Viewed 24 times
0
-
1Possible duplicate of [Open a URL in a new tab (and not a new window) using JavaScript](http://stackoverflow.com/questions/4907843/open-a-url-in-a-new-tab-and-not-a-new-window-using-javascript) – worc Jan 07 '17 at 01:42
-
that script seems only to do onclick but I want it on visit – TravelWhere Jan 07 '17 at 02:05
-
there are multiple solutions on that page and a lot of good discussion about what is and isn't possible regarding *opening a new tab with javascript*. the answers are going one step further and implementing that code as a click event, but the core question is the same. – worc Jan 08 '17 at 00:46