I have a url like http://www.mydomain.com/folder/file.html#val=90&type=\”test\”&set=\”none\”&value=\”reset?setvalue=1&setvalue=45\”
Now I need to get the portion of url from starting from #, How do I get that, I tried using window.location.search.substr(); but looks like that searches for ? in a url. is there a method to get the value of url after #
How do I also get a portion of url from ampersand &
Thanks,
Michael





Rating:
The post jquery – How to get the hashtag value and ampersand value of a url in Javascript? appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/jquery-how-to-get-the-hashtag-value-and-ampersand-value-of-a-url-in-javascript.html
No comments:
Post a Comment