News for hackers. Stuff that matters.
Re:The mermaid is taking over Google search in Norway by chopin on Thursday July 29, 2021 @03:35AM (#27993891)
Sites should be punished into oblivion for doing this. Why do browsers even allow it? Is there a legitimate use-case for this?

I am maintaining an SPA and the only thing I do is trying to not pollute history. But I'd never try to block the back button.

Re:The mermaid is taking over Google search in Norway by ma2rten on Thursday July 29, 2021 @10:24PM (#28003770)
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.
Re:The mermaid is taking over Google search in Norway by chopin on Friday July 30, 2021 @07:50AM (#28006950)
But this can be achieved with other means. I have exactly this on my SPA.