XML DOM nameProperty
DocumentType Object
Definition and Usage
The name attribute returns the name of the DTD (the name that immediately follows the DOCTYPE keyword).
Syntax
documentObject.doctype.name
Example
The following code snippet usesloadXMLDoc()put "note_internal_dtd.xmlLoad into xmlDoc and display the name of the DTD:
Example
xmlDoc=loadXMLDoc("note_internal_dtd.xml");
document.write(xmlDoc.doctype.name);
document.write(xmlDoc.doctype.name);
Output:
note
Try it Yourself »
DocumentType Objectother extensions