ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

  • Properties specific to the description of htmlAttribute variables
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
htmlAttribute (Type of variable)
In french: htmlAttribut
The htmlAttribute type is used to define all the advanced characteristics of an attribute of an element in an HTML document. The characteristics of this attribute can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// code used to handle an Edit control
// for entering a single-use code
 
html_node is htmlNode
html_node..TagName = "input"
html_attribute is htmlAttribute
html_attribute.Name = "autocomplete"
html_attribute.Value = "one-time-code"
ArrayAdd(html_node..Attribute, html_attribute)
Remarks

Properties specific to the description of htmlAttribute variables

The following properties can be used to handle an attribute of an HTML document:
Property nameType usedEffect
ExistBoolean
  • True if the element exists in the document,
  • False otherwise.
This property is read-only.
NameCharacter stringAttribute name.
ValueAll typesAttribute value.
Related Examples:
HTML types (HTMLDocument, HTMLNode, HTMLAttribute) Unit examples (WINDEV): HTML types (HTMLDocument, HTMLNode, HTMLAttribute)
[ + ] This example shows how to use the HTMLXxx WLanguage types (HTMLDocument, HTMLNode, HTMLAttribute)
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment