IHTMLLocation Object

Microsoft FrontPage Visual Basic

IHTMLLocation Object

Multiple objects IHTMLLocation

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

Using the IHTMLLocation object

Use the location property to return an IHTMLLocation object. Use the href and pathname properties of the IHTMLLocation 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 IHTMLLocation
    
    Set objLocation = ActiveDocument.Location
    
    objLocation.reload
End Sub