Refael
asked on
Get URL hash text
Check if the URL has a hash
If it does then grab the text after the hash
e.g. http://someurl.com/books#bookname
I know how to check if the URL has a hash but I don't know how to work with the "split" function to get the text after the "#".
Thanks!
If it does then grab the text after the hash
e.g. http://someurl.com/books#bookname
I know how to check if the URL has a hash but I don't know how to work with the "split" function to get the text after the "#".
Thanks!
if (window.location.href.indexOf('#') > -1) { }
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER