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

154
Visualizações
How to close an opened browser tab with javascript after some page navigations

I have an application which opens some larger multi-page dialogues in new browser tabs using window.open(). On the first page in the new tab close() works, but after any navigation in the new tab close() doesn't work any more in modern browsers, all workarounds I found have been disabled by now.

Is there any way to keep the reference to the initially opened window and pass it along during navigation so I can close it from within the new tab after the navigations?

Or access the tab which opened the current tab initially which still holds a reference to the opened window and close it from there?

All pages are controlled by me and share the same host / context if this may help, navigation in the new tab must be top level to some extent, so wrapping into an iframe may not be an option.

about 4 years ago · Juan Pablo Isaza
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