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