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 the specified node and its descendants in an HTML document.
Example
hDoc is htmlDocument = "
<html>
	<head/>
	<body>
		<h2><span>
			<p>Texte</p>
			</span></h2><h3></h3>
	</body>
</html>
"
hNoeud is htmlNode
// body: <div id="div"><p>Texte</p></div>
hNoeudInsertion is htmlNode
hNoeudRecherche is array of htmlNode <- HTMLChercheElémentParBalise(hDoc, "h3")
hNoeud <- hNoeudRecherche[1]
hNoeudInsertion..TagName = "div"
HTMLInsertFirstChild(hNoeud, hNoeudInsertion)
// body: <h1/><h2><span><p>Texte</p></span></h2><h3><div/></h3>
hNoeudInsertion..TagName = "span"
HTMLInsertLastChild(hNoeud, hNoeudInsertion)
// body: <h1/><h2><span><p>Texte</p></span></h2><h3><div/><span/></h3>
Trace(hDoc)
HTMLRemove(hNoeud)
// body: <h2><span><p>Texte</p></span></h2>
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
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