TOC PREV NEXT INDEX

domref



hasAttributes


hasAttributes is a boolean value indicating whether the current element has any attributes.

Syntax

[ true | false ] = element.hasAttributes
 

Parameters

boolean true | false

Example

t1 = document.getElementById("table-data");
 
if ( t1.hasAttributes ) {
 
    // do something with
 
    // t1.attributes
 
}
 

Notes

None.

Specification

hasAttributes
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX