I'm trying to get all parameters from an url.
Example:
http://domain.com/page?param1=values¶m2=values2?param3=value3....¶mx=valuex
I am using this:
window.location.search.substring(1).split("&")
It works quite ok, except that all the parameters delimiters &
are replaced by comma ,
Basically the parameters above are returned like this:
param1=values,param2=values2,param3=value3,....,paramx=valuex
Any idea how can can I get the parameters as they are?