Questions? Call (860)407-2687
find us on:

❔ Comments & Questions on How One Can Use Open Multiple Links 🖇 in New Tabs

short url:
Feel free to submit your comment OR question below. Anything that does not contribute and is just spam will automatically be deleted. Questions marked by * are required. Comments are checked by a human to make sure they are not spam/automated and are on topic and related to ❔ Comments & Questions on How One Can Use Open Multiple Links 🖇 in New Tabs.
Meldrick
Is there a way to create an html link that opens multiple urls when clicked?
Yes Mel. You will have to incorporate a bit of JavaScript to make a link in html that opens multiple urls or web pages when the link is clicked. The way you could do this is create the code for a link like so, for example

<a href="javascript:funcOpenUrls()">Link Text</a>


The JavaScript code would be:

<script>
function funcOpenUrls(){

  // replace the urls below with your desired urls. be sure to 
  // enclose each url in quotes and separate with commas as 
  // shown here. you can have as many urls as you wish.
 var arrUrls = ["http://www.google.com", 
               "https://www.nbots.me/wt15", 
               "https://www.scrapersnbots.com/"];

  // code loops through each of your urls 
  // and opens them in a new browser tab
  for (var i = 0; i < arrUrls.length; i++){
       window.open(arrUrls[i], "_blank");
  }
}
</script>

NAME:
EMAIL:
COMMENT:
HTML OK. Allowable HTML tags include: <p></p>, <i></i>, <b></b>, <em></em>, <strong></strong>, <ul><li></li></ul>, <ol><li></li></ol>

CONTENT RELATED TO 🧾 OPEN MANY URL'S 🖇 IN NEW TABS

Question ❔
Back to Top
S
H
A
R
E