Contents - Index - Top


ElementHasAttributeByName

Interface AntViewDocument

 

Type: Method

Parameters: String Name String AttrName

Returns: nothing

 

 

Request the html element identified by Name if it has an attribute identified by AttrName.

Name is case sensitive.

 

As the request is run asynchronously, the existence of the attribute is returned in the OnElementHasAttributeByName 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 ElementHasAttributeByNameSync that wraps this method and the event into one call.

 

See also: ElementRemoveAttributeByName, ElementToggleAttributeByName

 

Example: 

Fill Form Example

 

Introduced in AntView release 1.1.354

 


AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/30/2024