TOC PREV NEXT INDEX

Put your logo here!


nodeName


Returns the name of the current node as a string.

Syntax

name = element.nodeName 

Parameters

name is a string representing the name of the currrent element.

Example

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

Notes

None.

Specification

core


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX