Mark F Mark F - 5 months ago 5x
Javascript Question

Open a URL in a new tab (and not a new window) using JavaScript

I'm trying to open a URL in a new tab, as opposed to a popup window. I've seen related questions where the responses would look something like:,'_blank');;

But none of them worked for me, the browser still tried to open a popup window.


Nothing an author can do can choose to open in a new tab instead of a new window. It is a user preference.

CSS3 proposed target-new, but the specification was abandoned.

The reverse is not true; by specifying dimensions for the window in the third argument of, you can trigger a new window when the preference is for tabs.