| cloneNode() | ใช้คัดลอก node |
|---|
method:cloneNode ( boolean );
return type:node
content:ใช้คัดลอก node โดยถ้ากำหนด true คือจะให้คัดลอก child node มาด้วย ถ้ากำหนด false คือจะคัดลอกเฉพาะ node นั้น
example:var tagOL = document.getElementById ( "bamboo" ); var newTagOL = tagOL.cloneNode ( true );