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 trigger an event whenever the user enters a url with a fragment although the same url is loaded already?

I have a simple website in HTML where there are several sections tagged with ids, so it is possible to jump directly to the specified section with URI fragments (e.g. https://example.org/index.php#header1). I use JavaScript to scroll a bit further when the hashchange event is triggered. However, if the user already is on e.g. https://example.org/index.php#header1, scrolls around and then presses enter in the URL bar, the browser will jump to the specified section but the event will not be triggered as the fragment did not actually change. Is there any way I can still make my event trigger?

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