Hacker News new | ask | show | jobs
by yjftsjthsd-h 1818 days ago
Okay, so it's all indirect? I usually just ctrl-w, and beyond the browser native dialog that sites can use to ask if you want to confirm saving your work or something, I wasn't aware of any way to intercept that or do anything about it.
1 comments

The most common way those exit-intent popups work is to check for when the users' mouse leaves the viewport e.g. https://stackoverflow.com/questions/923299/how-can-i-detect-...