Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript hashtag url

var hash = window.location.hash;
if (hash) {
  // Fragment exists
  hash = hash.substring(1);
  console.log(hash);
} else {
  // Fragment doesn't exist
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #hashtag #url
ADD COMMENT
Topic
Name
6+3 =