Return the name of an attribute:
The result will be:
The name property returns the name of the attribute.
![]()
The name property is supported in all major browsers.
| Return Value: | A String, representing the name of the attribute |
|---|---|
| DOM Version | Core Level 1 |
Your message has been sent to W3Schools.