'How to open 2 link or more pages when a button is clicked? [duplicate]

How can I open 2 or more pages when a button is clicked in HTML and JavaScript?

html

<td style="background-color:#EE9933;">
    <input type="button" id="logtkt" value="Item Logs tkt" class="button" 
      style="Color:blue;width:170px;position: relative;Top: 1px;Left: 1px" 
      onclick="logtkt()"/>
</td>

js

function tktNum() {
  var str = document.getElementById('tktTree').value;
  var t;
  var res = str.substr(1, 10);
  if (str.substr(0, 1) == 0) {
    t = res;
  } else {
    t = str;
  }
  tktTree.value = t;
}


function logtkt() {
  var t = document.getElementById('tktTree').value;
  parent.open("http://-----=" + t + "");
}


Solution 1:[1]

    clickMe.addEventListener("click", (e) => {
        e.preventDefault();
        window.open('https://bbc.co.uk', '_blank');
        window.open('https://news.sky.com', '_blank');
    });

This should do the trick.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 lolmatya