As stated in this answer, the user decides whether the new windows go to a tab or even a window.
The concept currently employed by browsers is that requests for new windows are opened as a new tab unless you set the opposite in your browser options (note that this is not a standard).
It seems to me that you are trying to solve something not programmatically solvable since it is the decision of the user and is present in the browser settings to which we do not have programmatically access.
Force open in new tab
So far there is no official support, but in CSS there is a proposal to deal with this subject:
.novaAba {
target-new: tab ! important
}
Some tests reveal that recent browsers support this property.
Learn more in CSS3 Hyperlink Presentation Module.
Force open in new window
Unless you have set your browser to always open in a new tab, the following code allows you to open in a new window because we are effectively indicating details such as height, details that indicate to the browser that we want a new window and not a tab:
window.open("http://www.google.com/", "minhaJanela", "height=200,width=200");
These and other options in the new window can be consulted here.
Command to open a new tab? I don’t know this feature in any programming language.
– Marcos Vinicius
Only the <a href="www.google.com" target="_Blank">open</a> opens in a new TAB if you click, same thing the window.open('www.google.com', '_Blank'), but the last one opens in a new WINDOW if the method is calling from an onClick no <a onclick='method()'></a>
– Thiago Alex