javascript - Open a new tab rather than a new window -


this question has answer here:

i want open new tab using jquery. code should pretty simple, nevertheless following code not working hence opens new window

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

how open new tab instead of new window?

it's not possible developer determine.

browsers have setting decides when happens, end user 1 decides how new window/tab open.

the closest "controlling" this, i've seen, when pass size in third parameter of window.open, "forces" new window (at least has in past). of course, isn't consistent across browsers. , opposite of you're looking for.

it doesn't when there browsers out there without feature of tabs.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -