TOC PREV NEXT INDEX

domref



nodeName


Returns the name of the current node as a string.

Syntax

name = nodeElement.nodeName
 

Parameters

name is a string that contains the name of the node.

Example

div1 = document.getElementById("d1");
 
text_field = document.getElementById("t");
 
text_field.setAttribute("value", div1.nodeName);
 
// textfield reads "div" now
 

 

Notes

None.

Specification

nodeName


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX