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

142
Vistas
Window.onUnload on all tabs

I'm researching if there is a way that window.onunload event gets fired on inactive tabs in Chrome browser.

The idea is that if i keep a page's tab active (let's say its index is 3), the event will fire if I (for example) close the browser. However, if i am navigating on some other page(s), the onUnload event on tab-index 3 (my page) will not fire (as it is not the active tab)

To my opinion, I would have thought that onunload gets fired for all tabs in the browser... but as to my tests... it only fires on the active-tab.

Is there any way to register a listener to detect if the browser closes even if (my) site is not lucky to sit in the "active" tab?

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