Element Object
The tagName property returns the tag name of the selected element.
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and gets the tag name from the first <title> element:
The output of the code above will be:
Element Object
Your message has been sent to W3Schools.