The property is read-only.
The property has no default value.
Example
This example uses the nodeName property to obtain the name of an element.
<SCRIPT>
// returns the element name 'LI' of the list item labeled 'List Item 2'
var sName = oList.childNodes(1).nodeName;
</SCRIPT>
<BODY>
<UL ID = oList>
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</UL>
</BODY>
Standards Information
property is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .