HTMLDocument Class

Provides access to the contents of an HTML document hosted by the WebBrowser control.  You obtain an instance of HtmlDocument through the Document property of the WebBrowser control.

HTML tags inside of an HTML document can be nested inside one another.

HTML files may also contain SCRIPT tags that encapsulate code written in one of the Active Scripting languages, such as JScript or VBScript. The InvokeScript method provides for execution of properties and methods defined in a SCRIPT tag.

Namespace: elsystem.windows.forms

Methods

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Description
Public property InvokeScript(scriptName) Executes an Active Scripting function (such as Javascript) defined in an HTML page.
Public property InvokeScript(scriptName,vector) Executes an Active Scripting function (such as Javascript) defined in an HTML page and passes a collection of values using a vector as the method argument.
Public property InvokeScript(scriptName,object) Executes an Active Scripting function (such as Javascript) defined in an HTML page and passes values using an object as the method argument.  
Public property OpenNew(replaceInHistory) Gets a new HtmlDocument to use with the Write method.
Public property Write(text) Writes a specified text string to the HTML page.  
Inheritance Hierarchy

elsystem.Object

elsystem.DotNetObject

elsystem.windows.forms.htmldocument