I\'m building something ONLY for Chrome.
I want to open several tabs with window.open
(which Chrome blocks but I can live with enabling
If your popup is created by a direct user action (not blocked by the popup blocker) and using the default options it will open in a new tab. If you create it programmatically, it will open as a new window. There is no way to change this behavior.
What you can do, although it is a really bad hack, is create the popup on a user action and then set the location to the final destination using a reference to the popup later on, like the following:
var popup1 = null;
document.getElementById('testAnchor').onclick = function() {
popup1 = window.open('about:blank', 'popup1');
}
setTimeout(function() {
popup1.location = 'LOCATION_ON_THE_SAME_ORIGIN_AS_THE_OPENER';
}, 5000);