Hacker News new | past | comments | ask | show | jobs | submit login

Add beforeunload event handler to prevent accidentally closing the window mid game.

https://developer.mozilla.org/en-US/docs/Web/Events/beforeun...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: