Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!