Open a URL in a new tab (and not a new window) – Stack Overflow

It’s all determined by your browser’s settings. Using window.open tells the browser to open something new, then the browser opens up what is chosen in its settings – tab or window. In the browsers you tested with, change the settings to open in a new window instead of a tab and you’ll see the others’ solutions are wrong.

Read More