From: Haris Bogdanovi� on
Hi.

Why doesn't this piece of code work ?
When I click on the <td> it doesn't change the text.

<td onclick="this.innerhtml = 'new text';">text</td>

Thanks


From: Martin Honnen on
Haris Bogdanovi� wrote:

> Why doesn't this piece of code work ?
> When I click on the <td> it doesn't change the text.
>
> <td onclick="this.innerhtml = 'new text';">text</td>

The property is called 'innerHTML', not 'innerhtml'.

--

Martin Honnen
http://msmvps.com/blogs/martin_honnen/