|
|
|
|
|
HTMLModifyAttribute (Function) In french: HTMLModifieAttribut Adds or changes an attribute of the current node of the HTML document. hDoc is htmlDocument = "
<html>
<head/>
<body>
<h2><span>
<p>Texte</p>
</span></h2><h3><div></div><span></span></h3>
</body>
</html>
"
hNoeud is htmlNode
hNoeudRecherche is array of htmlNode <- HTMLChercheElémentParBalise(hDoc, "h3")
hNoeud <- hNoeudRecherche[1]
HTMLModifyAttribute(hNoeud, "id")
HTMLModifyAttribute(hNoeud, "id", "h3")
HTMLRemoveAttribute(hNoeud, "id")
Syntax
HTMLModifyAttribute(<Source node> , <Attribute> [, <Value>])
<Source node>: htmlNode variable Name of the htmlNode variable that corresponds to the reference node for modifying the attribute. <Attribute>: htmlAttribute variable or character string Attribute to modify. This element can correspond to: - a variable of type htmlAttribute.
- a string corresponding to the attribute to be modified.
If this attribute does not exist, it will be created. <Value>: Optional variant New attribute value. If this parameter is not specified, the attribute is created without value. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|