TOC PREV NEXT INDEX

Put your logo here!


hasChildNodes


hasChildNodes is a boolean value indicating whether the current element has children or not.

Syntax

[ true | false ] = element.hasChildNodes 

Parameters

boolean true | false

Example

t1 = document.getElementById("table-data"); 
if ( t1.hasChildNodes ) { 
    // table has kids 
} 

Notes

None.

Specification

core


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