
18/11/2010, 06:51
|
| | Fecha de Ingreso: septiembre-2004 Ubicación: La Plata Argentina
Mensajes: 128
Antigüedad: 20 años, 6 meses Puntos: 9 | |
Respuesta: ayuda con array y aqui el ejemplo : Cita: <html>
<head>
<title></title>
<script>
var a = [];
</script>
</head>
<body>
<input id="texto" type="text" onfocus="this.value=''" value='escriba aqui el valor' />
<button onclick="b=document.getElementById('texto');a[a.length]=b.value;b.value='escriba aqui el siguiente valor'">sumar elemento</button>
<button onclick="alert('valores cargados : \n\n'+a.join('\n'))">ver array</button>
</body>
</html> |