|
|
|
|
|
HTMLRemove (Function) In french: HTMLSupprime Removes the specified node and its descendants in an HTML document. hDoc is htmlDocument = "
<html>
<head/>
<body>
<h2><span>
<p>Texte</p>
</span></h2><h3></h3>
</body>
</html>
"
hNoeud is htmlNode
hNoeudInsertion is htmlNode
hNoeudRecherche is array of htmlNode <- HTMLChercheElémentParBalise(hDoc, "h3")
hNoeud <- hNoeudRecherche[1]
hNoeudInsertion..TagName = "div"
HTMLInsertFirstChild(hNoeud, hNoeudInsertion)
hNoeudInsertion..TagName = "span"
HTMLInsertLastChild(hNoeud, hNoeudInsertion)
Trace(hDoc)
HTMLRemove(hNoeud)
Trace(hDoc)
Syntax
HTMLRemove(<Node to remove>)
<Node to remove>: htmlNode variable Name of the htmlNode variable that corresponds to the node to be removed. All of its descendants will be removed. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|