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

I don't really want to add it to the user's history, though. Breaking the back button is bad.


In that case you use `history.replaceState()`, or just plain old `window.location.replace('url')`


Well, the latter would cause a reload, but the former sounds good. I'll try it, thanks!




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

Search: