ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / HTML file functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Removes a given node in the current node of an HTML document.
Example
hDoc is htmlDocument = "
<html>
	<head/>
	<body>
			<h1/>
			<h2>
			<span>
			<p>Texte</p>
			</span>
			</h2>
	</body>
</html>
"

hNoeud is htmlNode
hNoeudRecherche is array of htmlNode 

hNoeudRecherche <- HTMLFindElementByTag(hDoc, "body")
hNoeud <- hNoeudRecherche[1]
hNoeudRecherche <- HTMLFindElementByTag(hNoeud, "h1")
hNoeudFils is htmlNode <- hNoeudRecherche[1]
HTMLRemoveChild(hNoeud, hNoeudFils)
// body: <h2><span><p>Texte</p></span></h2>
Syntax
HTMLRemoveChild(<Source node> , <Child to remove>)
<Source node>: htmlNode variable
Name of the htmlNode variable that corresponds to the reference node for removing the child.
<Child to remove>: htmlNode variable
Name of the htmlNode variable that corresponds to the child node to be removed
Business / UI classification: Business Logic
Component: wd300html.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help