matthijs166
11/20/2017 - 12:56 PM

get url hash tag href parameter

get hashtag from the url #

if(window.location.hash) {
  console.log(window.location.hash);
} else {
  // Fragment doesn't exist
}