ElementRemoveAttributeById
Interface AntViewDocument
Type: Method
Parameters: String Id String AttrName
Returns: nothing
Remove the attribute identified by AttrName of the html element identified by Id.
Note that the Id is case sensitive and must match the case of the html element.
This triggers the OnElementRemoveAttributeById event on completion as it is an asynchronous operation. The event gives you the possibility to check for errors that might have happened while trying to remove the attribute.
There's also a synchronous alternative ElementRemoveAttributeByIdSync that wraps the method and event into one call and gives you the ability to check the result immediately after executing the method.
See also: ElementHasAttributeById, ElementToggleAttributeById
Introduced in AntView release 1.1.354
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024