SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply assign it a new value as follows,
window.location.hash