Why doesn't 'this.childNode' work?
April 22, 2006
Javascript

'this.childNode' not working?

If you are trying to get a javascript function to work using

this.childNode.foo

and it's not working, it's because the syntax is wrong.

Try this.firstChild.foo instead!

Guessing at the correct DOM element name to use doesn't always work!

Found this on Experts Exchange. Thansk ahosang for the answer.


Ads by Google

Posted by ellen at April 22, 2006 09:23 AM


Ads by Google

 RSS   |   Contact Me

Ads by Google

Ads by Google