Understanding WebWindows and PageWindows

Microsoft FrontPage Visual Basic

object is an object in the third tier of the object hierarchy belonging to the collection of WebWindows (second tier). The Document property is accessed via the PageWindowEx object (belonging to the collection of PageWindows), whose parent is the WebWindowEx object. The object hierarchy for the WebWindows collection is shown in the following diagram.

WebWindows WebWindowEx
PageWindows
PageWindowEx

What is a WebWindowEx object?

The WebWindowEx object is the window container for the Web site. When you open a Web site in FrontPage, you see the Web site in its "web" window. FrontPage opens a new window for each Web site you open.

What is a PageWindowEx object?

The PageWindowEx object is the container for the web page. When you open a page in a web window, that page is contained in a page window (visible in the right pane). FrontPage opens a new page window for each page you open; however each PageWindowEx object is contained within the WebWindowEx object for the individual Web site. Each page that you've opened is visible on the Windows menu in FrontPage.

Where does the DispFPHTMLDocument object fit in?

The FPHTMLDocument object contains the HTML elements for a page. The elements for the document are available using an expression such as ActivePageWindow.Document.element where element is one of the HTML elements available in FrontPage. Note that not all HTML elements have corresponding properties that you can use to access the element. For example, there is no head property to access the HEAD element. In these cases, use activepagewindow.Document.all.tags.item("element") to return the object that corresponds to the specified element.