I have JavaScript code like this:
var arrayku = new Array();
for (var i = 0; i < sURLVariables.length; i++)
{
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam)
{
return [i, sParameterName[0], sParameterName[1]]; //i is id, sParameterName[0] is first 2nd param, sParameterName[1] is third param
}
}
The Question is how to:
Put variable
i,sParameterName[0],sParameterName[1]into array of key and value and I want variableias the key.How to get all value of
arraykuin a loop?
arraykuthe same way you get all the values ofsURLVariables?