
07/05/2009, 22:17
|
| | Fecha de Ingreso: marzo-2006
Mensajes: 329
Antigüedad: 19 años Puntos: 1 | |
Respuesta: attachEvent Gracias davi por responder pero de todas maneras no me funciona, tal vez tengo algun error de sintaxis o algo parecido
opcion=document.createElement("option");
opcion.name="opt" + i;
opcion.id="opt" + i;
//opcion.setAttribute("onmouseover","lafuncion();")
//opcion.attachEvent('on' + 'click',function(){lafuncion;});
opcion.attachEvent("onChange",lafuncion)
opcion.innerText=ArrayPalabra[i];
comboBox.appendChild(opcion); |