Chapter 3 DynaScript Predefined Objects
The DOMElement
object inherits
all of the properties of the DOMNode
object, as
well as the tagName
property,
discussed here.
DOMElement.tagName
A string containing the name of the element. Element names are case-sensitive in XML.
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. |