Contents - Index




Type: Method

Parameters: none

Returns: nothing



Requests the control to retrieves the html of the top level document currently rendered.


Note that this might not include frames. 

In particular, if you have a frame that is in a different domain then by default security rules will prevent your javascript to access (or read) any of the html elements in that frame.


After the content is retrieved it will return the result in the OnRequestCurrentHtml event.


Please note that you need to connect the document object to the WebView2 control with the CurrentBrowser method.