How to open two tabs by clicking on a link

<a href="http:/google.com" data-href2="https://script-money.cc/">Click</a>


<script>
var els = document.querySelectorAll("a");
for(var i = 0; i < els.length;i++)
  els[i].addEventListener("click",function(){if(this.getAttribute("data-href2"))window.open(this.getAttribute("data-href2"));},false)
</script>
<a href=//yandex.ru onclick=window.open('//google.com')>ссылка</a>

Check Also

Online Gaming Platform by Swissbet - Download

Online Gaming Platform by Swissbet – Download

Swissbit online Gaming platform The Swissbit gaming platform is specially designed to combine various gaming …

Leave a Reply

Your email address will not be published. Required fields are marked *