I have a html page which is loaded using a url that looks a little like this:
http://localhost:8080/GisProject/MainService?s=C&o=1
I wo
Let's get a non-encoded URL for example:
https://stackoverflow.com/users/3233722/pyk?myfirstname=sergio&mylastname=pyk
Packing the job in a single JS line...
urlp=[];s=location.toString().split('?');s=s[1].split('&');for(i=0;i
And just use it anywhere in your page :-)
alert(urlp['mylastname']) //pyk
- Even works on old browsers like ie6