Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think a legitimate use-case is asking for confirmation before leaving the page when filling out a form so that the user doesn't loose their data.


But this can be achieved with other means. I have exactly this on my SPA.




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

Search: