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