Forked from michaelbeltran/$_GET equivalent in javascript
Created
February 13, 2020 19:08
-
-
Save Serrin/e6112a39c0a7955ebe0190b6942739b0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var $_GET = new Array(); | |
function GET() { | |
var url = location.search.replace("?", "").split("&"); | |
for (var index = 0; index < url.length; index++) { | |
var value = url[index].split("="); | |
$_GET[value[0]] = value[1]; | |
} | |
} | |
GET(); |
This file contains hidden or 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
$_GET['key_uri'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment