TheDesignspace
Why doesn't 'this.childNode' work?


April 22, 2006
Javascript

'this.childNode not working?

If you are trying to get a function to work using

this.childNode.whatever

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

Try this.firstChild.whatever instead!

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

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

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

 Comments
 Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?



Recommended Reading