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

66
Views
onbeforeunload requires users gesture

I want to show standard confirmation modal when:

  • user refresh page (Reload site? Changes you made may not be saved)
  • close the tab (are you sure to leave this page?)

but it works only after user's gesture (for example user's click)

if reload page or close tab without any gesture modal doesn't appear and I get error

[Intervention] blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load

how to solve this problem?

about 4 years ago · Santiago Gelvez
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!