Created
August 19, 2011 08:53
-
-
Save killerwolf/1156375 to your computer and use it in GitHub Desktop.
extractUrlParams
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
//////////////////////////////////////////////// | |
// Fonction de récupération des paramètres GET de la page | |
// @return Array Tableau associatif contenant les paramètres GET | |
//////////////////////////////////////////////// | |
function extractUrlParams(){ | |
var t = location.search.substring(1).split('&'); | |
var f = []; | |
for (var i=0; i<t.length; i++){ | |
var x = t[ i ].split('='); | |
f[x[0]]=x[1]; | |
} | |
return f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment