I will have a URL like this:
http://website/index.html?id=1234&type=something
The id and type being passed will be different depending on what the user does on the other end.
Using Javascript, I want to get the id and the type to be used as variables, like this:
var theID = 1234
var theType = something
But I don't know how to pull those values from the URL and set the values like above. How can I do this?