Easy Tutorial
❮ Dom Documenttype Dom Met Document Createelement ❯

English: # XML DOM tagName Property



Definition and Usage

The tagName property returns the tag name of the selected element.

Syntax


Example

The following code snippet uses loadXMLDoc() to load "books.xml" into xmlDoc and retrieves the tag name from the first <title> element:

Example

The above code will output:


❮ Dom Documenttype Dom Met Document Createelement ❯