SyntaxFix
Write A Post
Hire A Developer
Questions
(Too many answers are redundant and outdated.) The best solution now is this:
history.replaceState(null, null, ' ');