HTML DOM Attribute name
Description
The name
property returns the name of an attribute.
The name
property is read-only.
See Also:
Syntax
attribute.name
Return Value
Type | Description |
A string | The name of the attribute. |
Browser Support
attribute.name
is a DOM Level 1 (1998) feature.
It is fully supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | 9-11 |