Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

102
Visualizações
How to open 4 urls in separate tabs with one click

Is there a way I can create one clickable link to open 4 different URL's as Browser tabs?

I tried to get it to work with window.open but can't figure out how to get multiple urls each on a new tab.

For example

<a href="#" onclick="window.open('http://google.com'); window.open('http://yahoo.com');">Click to open Google and Yahoo</a>

Thanks for your help

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Your link is working for me. Please check if your Browser blocks the tab-creation (block-icon in the toolbar).

about 4 years ago · Juan Pablo Isaza Relatório

0

As per my comment above, I was actually doing it right, it was the browser stopping it from working, enabling popups fixed it.

Multiple window.open's is what I needed to use, e.g.

<a href="#" onclick="window.open('http://google.com'); window.open('http://yahoo.com'); window.open('http://bing.com'); window.open('http://duckduckgo.com');">Click to open Search Engines</a>

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda