Hacker News new | ask | show | jobs
by nexle 410 days ago
slightly off topic but it should be a crime for a website hijacking the back button
2 comments

It should be a crime for web browser letting the back button be hijacked in the first place!
It shuld be a crime for web browsers to download and execute code as a matter of loading a page.
Nothing is "hijacked"; it just sets the hash to allow permalinks. It should probably actually load the state when pressing back (or replace the current entry instead of adding a new one). But that's just a bug and not malice, as some seem to assume.
It actually is augmenting the history so "hijack" is correct.

Weird that back isn't restoring the state. Just stays the same for me.