Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

275
Views
How to open 2 link or more pages when a button is clicked?

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 + "");
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

    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.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!