Skip to content

Instantly share code, notes, and snippets.

View killerwolf's full-sized avatar

Hamdi LAADHARI killerwolf

View GitHub Profile
@killerwolf
killerwolf / extractUrlParams.js
Created August 19, 2011 08:53
extractUrlParams
////////////////////////////////////////////////
// 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];