+ 1

How to open multiple url by just one click using html

Open as many urls as we want according to our need

27th Sep 2020, 7:56 PM
Abhishek Bhandari
Abhishek Bhandari - avatar
2 odpowiedzi
+ 1
<a id="link" href="#">Open two pages</a> JS: document.querySelector("#link"). addEventListener ("click'", (event) => { event.preventDefault() window.open("https://www.google.com") window.open("https://www.sololearn.com") })
27th Sep 2020, 10:56 PM
Qui-Gon Jinn
Qui-Gon Jinn - avatar
0
Qui-Gon Jinn dang wow
27th Sep 2020, 11:42 PM
PresidentOfYes12
PresidentOfYes12 - avatar