home / experts / javascript / column75 |
|
The Ownership RelationshipA relationship that is not yet supported by IE 5.5 is the document context of a node. Each tag you define in an HTML file (each tag is modeled by a node on the DOM tree), belongs to a certain
Let's print the node name (tag name), so it's easier to detect which node it is. You should get
Now, let's go deeper in the tree, to
And then let's go directly back to the root of the DOM tree:
As previously, let's print the node name of the root. Again, we go to the root node by the
You should get Next: How to reference objects in Netscape 6 |
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: January 15, 2001
Revised: January 15, 2001
URL: http://www.webreference.com/js/column75/4.html