DEV Community

loading...

Discussion on: Sure you want to leave?—browser beforeunload event

Collapse
samthor profile image
Sam Thorogood Author

No, that's the whole point. You could write something like "CLOSING THIS PAGE WILL EXPLODE YOUR COMPUTER", and browsers have decided that you should not be able to do that.