FPHTMLLocation Object

Microsoft FrontPage Visual Basic

FPHTMLLocation Object

FPHTMLLocation

The FPHTMLLocation object contains members that provide information about the current URL.

Using the IHTMLLocation object

Use the location property to return an FPHTMLLocation object. Use the href and pathname properties of the FPHTMLLocation object to return the path and filename of a specified document. Use the reload method to reload the page. The following example reloads the specified document.

Note  When you use the reload method on a saved document that has been changed but not resaved, a message appears asking if the user wants to revert to the previously saved version.

    Sub ReloadDocument()
    Dim objLocation As FPHTMLLocation
    
    Set objLocation = ActiveDocument.Location
    
    objLocation.reload
End Sub