| hasChildNodes | ใช้ตรวจสอบว่า node ที่กำหนดมี child node หรือไม่ |
|---|
property:hasChildNodes;
return type:boolean
content:ใช้ตรวจสอบว่า node ที่กำหนดมี child node หรือไม่
example:var tagOL = document.getElementById ( "bamboo" ); if ( tagOL.hasChildNodes ) { alert ( "tag have child node" ); }