RequestElementAttributeByName
Interface AntViewDocument
Type: Method
Parameters: String Name String AttrName
Returns: nothing
Request the contents of the attribute passed for the html element identified by Name.
Name is case sensitive.
The attribute is passed via parameter AttrName.
As the request is run asynchronously, the requested value is returned in the OnRequestElementAttributeByName event.
Note that multiple elements can match the name passed. If this is the case then only the data of the first element that matches the name will be retrieved.
There's also a synchronous alternative RequestElementAttributeByNameSync that wraps this method and the event into one call.
See also: SetElementAttributeByName
Example:
Introduced in AntView release 1.1.354
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024