0 out of 4 rated this helpful - Rate this topic

tagName property

[This documentation is preliminary and is subject to change.]

Retrieves the tag name of the object.

Syntax

JavaScript

p = object.tagName

Property values

Type: String

the tag name.

Standards information

Examples

This example retrieves the tag name of an object that has the identifier specified in the prompt window.


<SCRIPT>
var idValue = window.prompt("Get the tag with this ID:");
if (idValue != null) {
    alert(document.all[idValue].tagName)
}
</SCRIPT>

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ