Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 711
نمايش فراداده

Availability

DOM Level 2 Core

Synopsis

boolean hasAttributes( );

Returns

true if this node has one or more attributes; false if it has none. Note that only Element nodes can have attributes.

See Also

Element.getAttribute( ), Element.hasAttribute( ), Node.attributes