TOC PREV NEXT INDEX

Put your logo here!


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

core


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX