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

254
Views
Can you still use a custom message in onbeforeunload?

I know that most browsers have discontinued support for being able to customize the onbeforeunload message however I came across this message on the Google DoubleClick website. Is this because it's a google website and they can do whatever they want?

something as basic as

window.onbeforeunload = function () {return 'Custom message'} 

to using https://github.com/codedance/jquery.AreYouSure . I'm going to assume that because the custom message I see in the image above is on a ddm.google.com (google advertising platform) that they can override their own rules?

firefox onbeforeunload message custom onbeforeunload message

edited because How can I override the OnBeforeUnload dialog and replace it with my own? is no longer valid due to changes in chrome and other browsers

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