How can I get Parameter values from url after # tag? for example, I have the url like this
1) index.html#page=home
2) index.html#page=topic?secid=1&catid=1
from above urls, i have to get parameter values of page, secid and catid.
How can I get Parameter values from url after # tag? for example, I have the url like this
1) index.html#page=home
2) index.html#page=topic?secid=1&catid=1
from above urls, i have to get parameter values of page, secid and catid.
To get all of the text, you can use window.location.hash
, including the hash symbol. Here's some information about parsing query string parameters.