ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / HTML file functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds a node before the specified node in an HTML document.
Example
hDoc is htmlDocument = "
<html><head/><body><div id="div"><p>Text</p></div></body></html>
"
hNode is htmlNode <- hDoc.FindElementByID("div")
// body: <div id="div"><p>Text</p></div>
hNode1 is htmlNode
hNode1..TagName = "h1"
hNode1..Text = "h1_text"
hNode.InsertBefore(hNode1)
// <html><head><body><h1>text_h1</h1><div id="div"><p>Text</p></div></body></html>
Syntax
<Source node>.InsertBefore(<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
Component: wd300html.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help