this.innerhtml

H

Haris Bogdanoviæ

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
 
M

Martin Honnen

Haris said:
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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,566
Members
47,202
Latest member
misc.

Latest Threads

Top