Thursday, June 12, 2008

Dom Object in javascript

Dealing with javascript dom object in javascript is quite convenient once you know it features. Here are some useful information about dom.

1. nodeType key word

-
element.nodeType = 9 meaning the rood of the element
- element.nodeType = 3 meaning the element is a text
- element.nodeType = 1 match any element like

No comments: