Home Property

Microsoft FrontPage Visual Basic

Home Property

Returns a HomeNavigationNode object that represents the navigation node for a specified page.

expression.Home

expression    Required. An expression that returns a NavigationNode object.

Example

The following example searches for a navigation node with the label "Sale", and then updates it.

    Private Sub ChangeNavLabel()
    Dim myFiles As WebFiles
    Dim myFile As WebFile

    Set myFiles = ActiveWeb.RootFolder.Files

    For Each myFile In myFiles
        If myFile.NavigationNode.Home.Label = "Sale" Then
            myFile.NavigationNode.Home.Label = "Sales Items"
        End If
    Next
End Sub