>I would like to verify something in regards to how the appendChild() works.
>
>I have this code:
>
>
>oDiv=toIFrame.document.getElementById(tcDiv)
>document.body.appendChild(oDiv)
>
>
>When this executes, oDiv is a reference to another document for a div object.
>
>The next line appends the master document with that div Html code.
>
>However, appendChild() destroys the object on the other document.
>
>What can I do to prevent that?
oDiv = toIFrame.document.getElementById(tcDiv).cloneNode(true);
document.body.appendChild(oDiv);
----------------------------------
António Tavares Lopes