Reputation: 533
I have the following URL which is generated from a search:
I've read about using window.location.search
but how can i use this with the above url. Basically I need to get the result of 'resource-category' which in this case is Welsh Wound Network
Upvotes: 0
Views: 110
Reputation: 36
You can try this way too: http://code-tricks.com/get-url-parameters-using-javascript/
In your case, you can use the function in the above url and do: var resourceCategoryParameter = getUrlParameters("resource-category", "", true);
This should return whatever is in resource-category.
Upvotes: 1