Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Bey stevenbey

View GitHub Profile
@stevenbey
stevenbey / QueryString.js
Created Jun 22, 2012
Add QueryString to your JavaScript location object.
View QueryString.js
(function() {
var querystring = {};
window.location.search.replace(
/([^?=&]+)(=([^&]*))?/g,
function($0, $1, $2, $3) { querystring[$1] = $3; });
window.location.querystring = querystring;
})();