I have the following link that when clicked, opens a new tab and refreshes the page with the link in. It works fine in Safari and Chrome but opens duplicate tabs in Firefox.
<a href="../print_letters/letter.php" class="button success" target="_blank" onClick="openWindowReload(this)">Run Letters</a>
function openWindowReload(link) {
var href = link.href;
window.open(href,'_blank');
location.href = 'index.php' + "?welcome_letters=export&welcome_letters=export"
}
Any ideas why Firefox is doing this and how to resolve it?