How do I use DOM with Javascript?
I just wanna do something simple, like have a Javascript to read an HTML document and print all of the tags and what they contain.
So I will have to traverse the DOM tree. But I aint sure how to find out what each node contains, and find out what kind of tag it is.
Is this really complicated?
HELP!
I just wanna do something simple, like have a Javascript to read an HTML document and print all of the tags and what they contain.
So I will have to traverse the DOM tree. But I aint sure how to find out what each node contains, and find out what kind of tag it is.
Is this really complicated?
HELP!