hasAttributes
hasAttributes is a boolean value indicating whether the current element has any attributes.
Syntax
[ true | false ] = element.hasAttributesParameters
Example
t1 = document.getElementById("table-data"); if ( t1.hasAttributes ) { // do something with // t1.attributes }
Notes
Specification
hasAttributes
Netscape Communications http://developer.netscape.com |