This example uses the addEventListener() method to attach a "hashchange" event to the window object.
Click the button to change the anchor part of the current URL to #part5