SetElementInnerHTMLById
Interface AntViewDocument
Type: Method
Parameters: String Id String Html
Returns: nothing
Set the innerHTML for the html element identified by Id in the document currently loaded in the WebView2 component.
Note that the id is case sensitive and must match the case of the html element.
This triggers the OnSetElementInnerHTMLById event on completion as it is an asynchronous operation.
There's also a synchronous alternative SetElementInnerHTMLByIdSync 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: RequestElementInnerHTMLById
Introduced in AntView release 1.1.354
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024