Returns an FPHTMLLocation object that represents the location information of the current document. The FPHTMLocation object contains information about the location of the document such as the path, port and protocol of the document.
expression.location
expression Required. An expression that returns one of the objects in the Applies To list.
The following example returns the location object and displays the path of the document.
Sub ReturnLocation()
'Returns the location information of the current document.
Dim objApp As FrontPage.Application
Dim objLocation As FPHTMLLocation
Set objApp = FrontPage.Application
Set objLocation = objApp.ActiveDocument.location
'Display location information to user.
MsgBox "The path of the current document is: " & objLocation.pathname
End Sub