This example uses the HTML DOM to assign an "onhashchange" event to a body element.
Click the button to change the anchor part of the current URL to #part5