AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos HTML
  • 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)
Versión mínima requerida
  • Versión 26
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 07/09/2023

Señalar un error o enviar una sugerencia | Ayuda local