Tema: attachEvent
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/05/2009, 22:17
jasamestica
 
Fecha de Ingreso: marzo-2006
Mensajes: 329
Antigüedad: 18 años, 2 meses
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);