javascript Element tagName
| tagName | NN 6 IE 4 DOM 1 |
| Read-only | |
|
Returns the name of the tag of the current element. Tag names are always returned in all uppercase letters for purposes of string comparisons, regardless of source code style or DOCTYPE declaration. |
|
| Example | |
var theTag = document.getElementById("elementID").tagName;
|
|
| Value | |
String. |
|
| Default | |
Element-specific. |
|
698,Nickname,Homepage or email,Comments here,Add comment
