ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / HTML file functions
  • Properties specific to 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. You can define and change the characteristics of this attribute 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
// This code is 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 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.
Name Character 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

Last update: 09/07/2023

Send a report | Local help