in current document, first get the node
Expand|Select|Wrap|Line Numbers
- var aNode = document.getElementById("anode");
Expand|Select|Wrap|Line Numbers
- newNode = targetdocument.importNode(aNode);
- targetdocument.body.appendChild(newNode);
How to append a Node created in another document ?
|