|
|
|
|
|
HTMLInsertBefore (Function) In french: HTMLInsèreAvant Adds a node before the specified node in an HTML document. hDoc is htmlDocument = " <html><head/><body><div id="div"><p>Text</p></div></body></html> " hNode is htmlNode <- HTMLFindElementByID(hDoc, "div") // body: <div id="div"><p>Text</p></div> hNode1 is htmlNode hNode1..TagName = "h1" hNode1..Text = "h1_text" HTMLInsertBefore(hNode, hNode1) // <html><head><body><h1>text_h1</h1><div id="div"><p>Text</p></div></body></html>
Syntax
HTMLInsertBefore(<Source node> , <Node to insert>)
<Source node>: htmlNode variable Name of the htmlNode variable that corresponds to the insert reference node. <Node to insert>: htmlNode variable Name of the htmlNode variable that corresponds to the node to be inserted before <Source node>. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|