AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos HTML
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 <- 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
Component: wd290html.dll
Versión mínima requerida
  • Versión 27
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 31/05/2022

Señalar un error o enviar una sugerencia | Ayuda local