Usage example for html onhashchange.

https://developer.mozilla.org/en-US/docs/Web/API/window.onhashchange