Share via


ActiveDocument Property

Returns an FPHTMLDocument object that represents the Web page currently displayed in the Microsoft FrontPage application window.

expression.ActiveDocument

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Remarks

This object provides access to the Microsoft FrontPage Page Object Model elements that are compatible with Microsoft Internet Explorer 4.0 and later. This object model provides programmatic access to the HTML in the specified page.

Example

The following statement returns the active document in FrontPage.

myDoc = Application.ActiveDocument

The following statement returns the active document for the specified page window.

myDoc = Application.WebWindows(0).PageWindows(0).ActiveDocument

Applies to | Application Object | PageWindowEx Object