The DOMElement interface

This interface represents an element in an HTML document. It inherits the DOMNode interface.

A DOMElement node can have the following child nodes, in any number and order:

These objects correspond to the HTML constructs that you typically find inside an element: sub-elements, text, comments, processing instructions, and entity references.

Consider the following example:

<H2>Sales Forecast, <EM>Grummots</EM>&reg;
</H2>

The DOMElement object for the <H2> element contains the following child nodes:

DOMElement properties

DOMElement methods


Right arrow
Next Topic
Left arrow
Previous Topic
Table of contents
Table of Contents

Copyright © SoftQuad Software Inc. 1999