Menu DOM Nodes
 

DOM Nodes

When I started out on this analysis I was aware of the DOM and object models and programming techniques. I even had some time as a Gupta SQLWindows analyst, which is pretty much all Ojects and Messaging. Object structure and inheritance was key to SQLWindows, along with the database stuff.

Now that I am "into" the DOM at a greater depth there are some terms that are coming to light. The use of the notion of a "node" is one of them.

Like so many other cases documentation can only go so far, the MDN documentation seems to he better than W3C in this regard. Both have far too much information to take in all at once.

MDN on the DOM

The Mozilla Developers Network do a pretty good job of explaining the DOM and describes "nodes" better, I think, than W3C - who drop you in the deep end.

The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. DOM methods allow programmatic access to the tree. With them, you can change the document's structure, style, or content.

MDN gave me the idea of attaching events to quoted text, as seen above. The MDN page is linked to the text.

Nodes can also have event handlers attached to them. Once an event is triggered, the event handlers get executed.

Element, text and comment nodes

" The read-only Node.nodeType property is an integer that identifies what the node is. It distinguishes different kind of nodes from each other, such as elements, text and comments. "

The values of the Node Type are as follows:

  • Node.ELEMENT_NODE (1) - p> or a div>
  • Node.ATTRIBUTE_NODE (2) - an attribute of an element
  • Node.TEXT_NODE (3) - the actual text contained in an Element
Top

Pages related to DOM Manipluation

External Links Disabled.

tempusfugit.me.uk is a non-commercial website. No payment or benefit is gained by the placement of links toother websites.

The External link is disabled to on this page, please visit other pages

Unlike most genealogical research websites tempusfugit.me.uk does not attempt to get you to "sign-up" when you click on one of their links.

This Wikipedia link is disabled.

The link on Wikipedia was to:

External Links Disabled.

tempusfugit.me.uk is a non-commercial website. No payment or benefit is gained by the placement of links to other websites.

The External link is disabled to on this page, please visit other pages

Top

External Links - references

Top

Site design by Tempusfugit Web Design -