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

447
Visualizações
Javascript - can I check if a tab opened with javascript is still open ? (without Chrome Extension)

I would like to know if it would be possible to check the existence of a tab with pure javascript. I know how to do this with a chrome extension but I'm wondering if it's possible with JS.

Creating the tab:

window.open("https://www.google.com", 'mytab');

Can I check if "mytab" is open ? And if it is open, does it have the focus? Using window.open may be blocked by pop-up blockers and because of this, I don't know if the tab has been opened.

My gut feeling tells me it's not possible with pure JS but I'm not an expert, that's why I'm asking. I have checked this on stackoverflow but I see mainly solution with a browser extension.

If know another work around, I'm also interested.

Thanks

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

0

The only thing I know of would be to implicitly check via if your page still has visibility / focus so this answer may help you further.

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