BaseHref Property

Microsoft FrontPage Visual Basic

BaseHref Property

Returns a String that represents the base location for links and references of a specified object.

expression.BaseHref

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

Example

The following example displays a message with the value of the BaseHref property of the first object in the active document. This example assumes there is at least one OBJECT element in the active document.

    Sub SetObjectBaseHref()
    Dim objObject As FPHTMLObjectElement

    Set objObject = ActiveDocument.all.tags("object").Item(0)

    MsgBox objObject.BaseHref
End Sub