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 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 à 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