The function that creat this event is
HTML Code:function crearEvento(elemento, evento, funcion) { if (elemento.addEventListener) { elemento.addEventListener(evento, funcion, false); } else { elemento.attachEvent("on" + evento, funcion); } }
i creat this event thus
and the dale function is declared thusHTML Code:crearEvento(elem,'click',dale(elem));
HTML Code:var dale = function (atemp){ alert(atemp.innerHTML);}
How Can i creat this event to replace the tipically?
HTML Code:<td onClick="dale(this);">


Reply With Quote
Bookmarks