Hash Change Listener JS

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