Print

window.addEventListener('hashchange', function() { console.log('The hash has changed!') }, false);