Heads up! This post was written 11 years ago. Some information might be outdated or may have changed since then.
var getDict = {};
location.search.substr(1).split("&").forEach(function(item) {
getDict[item.split("=")[0]] = item.split("=")[1];
});