| appendChild() | ใช้เพิ่ม child node ให้กับ parent node |
|---|
method:appendChild ( child_node );
return type:void
content:ใช้เพิ่ม child node ให้กับ parent node
example:var tagOL = document.getElementById ( "bamboo" ); var tagLI = document.createElement ( "li" ); var textNode = document.createTextNode ( "manchester" ); tagLI.appendChild( textNode ); tagOL.appendChild( tagLI );