Revision: 51456
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 25, 2011 02:57 by jrobinsonc
Initial Code
function getUrlVars()
{
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
Initial URL
Initial Description
Initial Title
Leer parámetros de la url con Javascript
Initial Tags
url
Initial Language
JavaScript