JavaScript: The Definitive Guide

25.212. Node.hasAttributes( ): determine whether a node has attributes

DOM Level 2 Core

25.212.1. Synopsis

boolean hasAttributes( );

25.212.1.1. Returns

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

25.212.2. See Also

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

Категории