Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

155
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda