Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

DOM Level 1

The Level 1 DOM is the first cross-browser DOM standardized by the W3C. Its objects are stored under the document object of the Level 0 DOM.

Basic Node Properties

Each object has certain common properties:

Relationship Properties

The following properties describe an object's relationship with others in the hierarchy:

Offset Properties

While not part of the W3C DOM, both Netscape and Internet Explorer support the following properties that provide information about a node's position:

Style Properties

The style child object under each DOM object includes its style sheet properties. These are based on attributes of a style attribute, <style> tag, or external style sheet. See Hour 18, "Working with Style Sheets," for details on these properties.

Node Methods

The following methods are available for all DOM nodes:

Document object methods and properties

The following are methods and properties of the document object:

Share ThisShare This

Informit Network