Get Hashtag in URL with jQuery


/ Published in: jQuery
Save to your folder(s)

Grab the hashtag at the end of the current URL.


Copy this code and paste it in your HTML
  1. var url = $(location).attr('href').split("#")[1];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.