When it comes to opening multiple URLs at once, it can be a tedious and time-consuming task. Fortunately, there are a few ways to open two URLs at once when you open one URL. This article will provide an overview of the different methods available to open two URLs at once when you open one URL. It will also provide step-by-step instructions on how to use each method. By the end of this article, you should have a better understanding of how to open two URLs at once when you open one URL.
No, it is not possible to open two URLs at once when opening one URL. Each URL must be opened separately.
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>