Sign up to request clarification or add additional context in comments.
Comments
0
You need to parse location.search. A simple implementation would be:
var matches = null;
var params = {}, raw_params = location.search.substring(1).split('&');
for (i in raw_params)
{
matches = raw_params[i].match (/^([^=]+)=(.+)$/);
if (matches) params[matches[1]] = matches[2];
}