This question already has an answer here:
- JavaScript query string 12 answers
I have an example URL, something like this
http://localhost/PMApp/temp.htm?ProjectID=462
What I need to do is to get the details after the ?
sign - that is ProjectID=462
. How can I get that using JavaScript?
What I've done so far is this:
var url = window.location.toString();
url.match(?);
I don't know what to do next.
location.search
– Bergi Aug 1 '13 at 0:23