Read HTMLviewer contents

Add this method to a module:

Public Function HTML(extends h as DesktopHTMLViewer) As String
  Return h.ExecuteJavaScriptSync( "document.documentElement.outerHTML;" )
End Function

Call as:

var result as String = HTMLViewer1.HTML
2 Likes