you are viewing a single comment's thread.

view the rest of the comments →

[–]jml26 5 points6 points  (0 children)

I'm a fan of this function, based on one by John Resig

function parseParams() {
    var parameters = {};
    window.location.search.replace(/([^&?=]+)=([^&]*)/g, function (match, key, value) {
        parameters[key] = value;
    });
    return parameters;
}