Chapter 3 DynaScript Predefined Objects


DOMNode object

Object

Represents a single node in the DOM document tree.

Syntax

To use a DOMNode's property:

DOMNode.propertyName

To use a DOMNode's method:

DOMNode.MethodName( parameter ) 

Description

The DOMNode object is the primary object type for the entire Document Object Model (DOM) suite of objects. It is the object from which most of the other DOM objects inherit.

Each object that inherits from the DOMNode exposes a nodeType property to identify the object. See the nodeType property below for valid values for the nodeType.

All objects inheriting from the DOMNode object expose methods for dealing with children, but not all node types necessarily have children. For example, text nodes cannot have children. See the childNodes property below for a list of which types of nodes can have children.

While each object that inherits from DOMNode exposes an attributes property, only DOMElement objects can have attributes.

 


Copyright © 1999 Sybase, Inc. All rights reserved.