Given an URL such as /abc.html#variable1, I want to capture the variable1 part to determine a given user’s “virtual page” when working with JavaScript (jQuery).
Given an URL such as /abc.html#variable1 , I want to capture the variable1 part
Share
If I understand your question, you don’t need at all jquery, just use
to get the url use
to get just the hash part of the url (the text after #) use
to get the GET variables you can use