you cannot manipulate tabs through javascript (you can ask the link to open in a new window, you just can't say that it opens on the tab). what you can try if you want to try is something like this:
$('button').click(function() {
$('a').each(function() {
window.open($(this).attr('href') );
});
});
, <button> <a> href window.open. , , , :)
, <button>, onclick() <a>.
: , OP:
$('a').click(function() {
window.open($(this).attr('href') );
});
$('button').click(function() {
$('a').click();
});
onclick(), , . ( )