ActiveFrameWindow Property

Microsoft FrontPage Visual Basic

ActiveFrameWindow Property

Returns an FPHTMLWindow2 object that represents the document displayed in the active page window.

Note   If the active page contains frames, the ActiveFrameWindow property returns the currently selected frame, if one is selected, or the frames page itself, if none of the frames is selected. If a page does not contain frames, the ActiveFrameWindow property returns the window containing the specified page.

expression.ActiveFrameWindow

expression    Required. An expression that returns a PageWindowEx object.

Note  Accessing the ActiveFrameWindow property is the same as accessing the parent window through the active page window as follows:

    ActivePageWindow.Document.parentWindow
  

Example

The following example retrieves the ActiveFrameWindow object.

    Private Sub GetActiveFrame()
    Dim myPageWindow As PageWindowEx
    Dim myFrame As FPHTMLWindow2

    Set myPageWindow = _
            ActiveWeb.ActiveWebWindow.ActivePageWindow
    Set myFrame = myPageWindow.ActiveFrameWindow
End Sub