hash # url – single page website navigation

function hashChecker(){
    var hash = (window.location.hash).replace('#', '');
    if (hash.length == 0) {
        //no hash do something   
    } else {   
        //else do something with hash
      if (window.location.hash == "#hashname") {
      // do something
        }
    }
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.