function getHashtag(){ var url = location.href; hashtag = (url.indexOf('#id') !== -1) ? decodeURI(url.substring(url.indexOf('#id')+1,url.length)) : false; return hashtag; };