Chapter 3 DynaScript Predefined Objects


DOMElement property

The DOMElement object inherits all of the properties of the DOMNode object, as well as the tagName property, discussed here.

tagName property

Syntax

DOMElement.tagName

Description

A string containing the name of the element. Element names are case-sensitive in XML.

Example

This example writes out the name of the document element of an XML DOM document stored in domDoc.

docElem = domDoc.documentElement;
document.writeln( docElem.tagName );

 


Copyright © 1999 Sybase, Inc. All rights reserved.