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

127
Views
Is it possible to catch the history.back event before navigating?

I would like to query whether the IsDirty flag is true or false when I click on the back button, but it should be before and not when the navigation is already finished. I'm not sure if this is so easy or if it's a bit more complex.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There is no "Simple" answer to this problem. While you can use various strategies within page and navigation menus to restrict dirty form exits, there are no easy one-liner ways to control browser navigation requests.

My current solution to this problem, which addresses all normal form exit mechanisms can be found here Blazr.Demo.Routing.

It rebuilds Router, adds a new Navigation Manager and interfaces with the browser beforeunload event.

about 4 years ago · Juan Pablo Isaza Report
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!