3 ms·
You can use pushstate to do this in modern browsers.
by justincormack 14y ago
You can use pushstate to do this in modern browsers.
- TazeTSchnitzel 14y agoI don't really want to add it to the user's history, though. Breaking the back button is bad.
- duncans 14y agoIn that case you use `history.replaceState()`, or just plain old `window.location.replace('url')`
- TazeTSchnitzel 14y agoWell, the latter would cause a reload, but the former sounds good. I'll try it, thanks!