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:

window.open(url,'_blank');
 window.open(url);
 

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

Text Copied From stackoverflow.com
on : Sat, Feb 05, 2011 Views : 1755439

Accepted Answer

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 window.open, you can trigger a new window when the preference is for tabs.

Text Copied From stackoverflow.com
on : Sat, Feb 05, 2011

Ask Question

If you want to ask question you must LogIn or SignUp
Login SignUp

Quick Links

E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..

Ok

Login to Open ESchool OR Create your account    Login   SignUp