Created
August 23, 2013 20:02
-
-
Save QuestionDevelopment/6323405 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
/* 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