location.hash
location.replace()
This testcase will only work if you open it in a tab with a blank history (a new tab).