DekGenius.com
Team LiB   Previous Section   Next Section
Node.hasAttributes( ) determine whether a node has attributes

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

    Team LiB   Previous Section   Next Section