SyntaxFix
Write A Post
Hire A Developer
Questions
If you have Underscore.js or lodash, a quick and dirty way to get this done is:
_.object(window.location.search.slice(1).split('&').map(function (val) { return val.split('='); }));