function getQuery(){
var s = location.search;
var params=Array();
if (s.length > 0) {
s = s.split('?');
s = s[1];
s = s.split('&');
for (i=0; i<s.length; i++) {
params.push(
s[i].split('=')
);
}
}
return params;
}
Enjoy, and if you find anything to add or remove, don’t hesitate to let me know in the comments!
2 commentaires