Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AppendChild() behavior on div
Message
De
15/03/2016 14:24:33
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Titre:
AppendChild() behavior on div
Divers
Thread ID:
01633130
Message ID:
01633130
Vues:
36
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?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform