You can listen to the hashchange
event:
$(window).on('hashchange',function(){
$('h1').text(location.hash.slice(1));
});
You can listen to the hashchange
event:
$(window).on('hashchange',function(){
$('h1').text(location.hash.slice(1));
});