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
Removes a given attribute
Example
hDoc is htmlDocument = "
<html>
<head/>
<body>
<h2><span>
<p>Text</p>
</span></h2><h3><div></div><span></span></h3>
</body>
</html>
"
 
hNode is htmlNode
 
hSearchNode is array of htmlNode <- HTMLFindElementByTag(hDoc, "h3")
hNode <- hSearchNode[1]
HTMLModifyAttribute(hNode, "id")
// body: <h2><span><p>Text</p></span></h2><h3 id><div></div><span></span></h3>
HTMLModifyAttribute(hNode, "id", "h3")
// body: <h2><span><p>Text</p></span></h2><h3 id="h3"><div></div><span></span></h3>
HTMLRemoveAttribute(hNode, "id")
// body: <h2><span><p>Text</p></span></h2><h3><div></div><span></span></h3>
Syntax
HTMLRemoveAttribute(<Source node> , <Attribute>)
<Source node>: htmlNode variable
Name of the htmlNode variable that corresponds to the reference node for removing the attribute.
<Attribute>: htmlAttribute variable or character string
Attribute to be removed. This element can correspond to:
  • a variable of type htmlAttribute.
  • a string corresponding to the attribute to be deleted.
Business / UI classification: Business Logic
Component: wd300html.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help