[Solved] Open two URLs at once when open one url? [closed]


this works but will be blocked by popup blockers

<a class="double-web-pages">open two websites</a>

<script>
document.querySelector("a.double-web-pages").addEventListener("click",function(){
  window.open("https://www.storewebsite.com");
  window.open("https://www.postswebsite.com");
})
</script>

and this one will open one new tab with store page and replace the current page with posts page

<a href="https://www.postswebsite.com" class="double-web-pages">open two websites</a>

<script>
document.querySelector("a.double-web-pages").addEventListener("click",function(){
  window.open("https://www.storewebsite.com");
});
</script>

0

solved Open two URLs at once when open one url? [closed]