O'Reilly logo

JavaScript Pocket Reference, 2nd Edition by David Flanagan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Attr

Properties

name

The name of the attribute. Read-only.

ownerElement

The Element object that contains this attribute. Read-only. DOM Level 2.

specified

true if the attribute was explicitly specified in the document source or set by a script. false otherwise. Read-only.

value

The value of the attribute as a string. Read/write.

See Also

Document.createAttribute( ), Element.getAttributeNode( ), Element.setAttributeNode( )

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required