ok, thanks for the help everyone, I know about the attributes, but I wanted to set all the attributes in the script, as I have a lot of <td>s and I might add more.anyway, this function works fine changing it and all when I use an ATTRIBUTE:
function lol(obj){var value = prompt('please enter a value')obj.innerHTML = value;}
the attribute is onclick="lol(this)"but I would still like to set the onclick inside the script.????thnx for your help.LG