Could someone explain in the most simplistic terms possible why this doesn't work:
var cell00501=row005.insertCell(-1);
cell00501.align="center";
cell00501.width="8%";
cell00501.onclick="RadioClicked(0)";
cell00501.innerHTML="<IMG SRC='RadioOn.jpg' BORDER='0' NAME='Spangle0'>";
By doesn't work I mean the onclick event doesn't result in the RadioClicked() function being called. I have come up with the following workaround:
var cell00503=row005.insertCell(-1);
cell00503.align="center";
cell00503.width="8%";
cell00503.innerHTML="<DIV onclick='RadioClicked(1)'><IMG SRC='RadioOff.jpg' BORDER='0' NAME='Spangle1'></DIV>"
However I would like to understand where I am going wrong.
Many thanks.