Java Reference
In-Depth Information
C
W3C DOM Reference
Because JavaScript is primarily used to program the browser and add behavior to web pages, it's
only natural to include a reference to the W3C DOM.
The following pages lists the objects made available by the W3C DOM.
DOM Core Objects
This section describes and lists objects defi ned by the DOM standards — starting with the lowest
level of DOM objects. All objects are in alphabetical order.
Low-Level DOM Objects
The DOM specifi cation describes the Node, NodeList, and NamedNodeMap objects. These are the
lowest-level objects in the DOM, and are the primary building blocks of higher-level objects.
Node
Defi ned in DOM Level 1, the Node object is the primary datatype for the entire DOM. All objects in
the DOM inherit from Node. There are 12 different types of Node objects; each type has an associated
integer value. The following tables list the Node object's type values, properties, and methods.
Node Types
Type Name
Integer Value
Introduced
Associated Data Type
ELEMENT_NODE
1
Level 1
Element
ATTRIBUTE_NODE
2
Level 1
Attr
TEXT_NODE
3
Level 1
Text
Continued
Search WWH ::




Custom Search