window.location.href in new tab code example
Example 1: javascript window.location new tab
window.open('https://example.org', '_blank');
Example 2: window.location.href another tab
window.open(
'https://support.wwf.org.uk/earth_hour/index.php?type=individual',
'_blank' // <- This is what makes it open in a new window.
);