Y
Hacker News
new
|
ask
|
show
|
jobs
by
StrangeSound
1522 days ago
You can also do this in the browser, using the beforeunload event
https://developer.mozilla.org/en-US/docs/Web/API/Window/befo...