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

Back to all posts