Skip to content

Instantly share code, notes, and snippets.

@QuestionDevelopment
Created August 23, 2013 20:02
Show Gist options
  • Save QuestionDevelopment/6323405 to your computer and use it in GitHub Desktop.
Save QuestionDevelopment/6323405 to your computer and use it in GitHub Desktop.
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Greg Burghardt | http://www.geocities.com/greg_burghardt/ */
var _GET = {};
function readURL() {
var tLoc = "", tPairs = "";
var tGet = [];
var foundGet = -1;
tLoc = window.location + "";
foundGet = tLoc.indexOf('?');
if (foundGet > -1) {
tLoc = tLoc.substring(foundGet + 1, tLoc.length);
tPairs = tLoc.split('&');
for (var i = 0; i < tPairs.length; i++) {
tGet = tPairs[i].split('=');
_GET[tGet[0]] = decodeURIComponent(tGet[1].replace(/\+/g,' '));
}
}
}
readURL();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment