ParentFull threadStrangeSound·You can also do this in the browser, using the beforeunload eventhttps://developer.mozilla.org/en-US/docs/Web/API/Window/befo...View on HN