variable = new Array(); variable[0]= 1; variable[1]= 2; variable[2]= 3; valor = variable.join(';'); document.nombreFormu.nombreTxt.value = valor;