Created
May 1, 2009 20:28
-
-
Save henrypoydar/105240 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function queryObject() { | |
var pairs, pair; | |
var query = new Array; | |
pairs = document.location.search.slice(1).split('&'); | |
for(var i = 0; i < pairs.length; i++) { | |
pair = pairs[i].split('='); | |
query[pair[0]] = pair[1]; | |
} | |
return query; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment