
onclick event for dynamic TD object
tdObj.onclick = function_name;
Regards,
--
------------------------------
Carlos Vtor de O. Barros
Web Developer
------------------------------
Say tableObj is a table object.
I create
trObj = tableObj.insertRow();
and then create a TD object
tdObj = trObj.insertCel();
I want to have an onclick evant inside the TD object. The problem is that
the
outerHTML is read-only for TD, and innerHTML is read-opnly for TR
I tried insertAdjacentHTML("afterBegin", "<td
onclick=alert('hello');></td>") and
it didn't work either.
Any help out there ??