+ 1
How to open multiple url by just one click using html
Open as many urls as we want according to our need
2 Answers
+ 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")
})
0
Qui-Gon Jinn dang wow