Skip to content

Instantly share code, notes, and snippets.

@stevenbey
Created June 22, 2012 11:28
Show Gist options
  • Save stevenbey/2972204 to your computer and use it in GitHub Desktop.
Save stevenbey/2972204 to your computer and use it in GitHub Desktop.

Revisions

  1. Steven Bey created this gist Jun 22, 2012.
    7 changes: 7 additions & 0 deletions QueryString.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    (function() {
    var querystring = {};
    window.location.search.replace(
    /([^?=&]+)(=([^&]*))?/g,
    function($0, $1, $2, $3) { querystring[$1] = $3; });
    window.location.querystring = querystring;
    })();