show / hide menu

GetHTMLAttrribute

This function is used to retrieve the value of an HTML attribute from specified controls. 

Syntax: 

GetHTMLAttribute(IdentifierType, AttributeName, IdentifierValue) 

The IdentifierType specifies the type of identifier such as ControlName, Class or ID. The user will have to specify the attribute name. The IdentifierValue is the actual value of an identifier such as ControlName, Class, or ID.  

Examples: 

TextBox1.Value=GetHTMLAttribute(ID,”aria-label”,GetControlId(TextBox2)) 

This function retrieves the aria-label attribute value from the control identified by TextBox2 and assigns it to TextBox1. 

TextBox1.Value=GetHTMLAttribute(ControlName,”aria-label”,TextBox2) 

This function retrieves the aria-label attribute value from the control named TextBox2 and assigns it to TextBox1. 

TextBox1.Value=GetHTMLAttribute(Class,”aria-label”,txt) This function retrieves the aria-label attribute value from controls with the class name “txt” and assigns it to TextBox1.