onunload Event
Occurs after a user closes a page window in Microsoft FrontPage.
expression.onunload
expression Required. An expression that returns one of the objects in the Applies To list.
Example
The following example displays information about the document that the user is closing.
Private Sub objWindow_onunload()
Dim strLogInfo As String
strLogInfo = "User: " & Application.UserName & vbCrLf & _
"Page Name: " & objWindow.Document.Url & vbCrLf & _
"Modified On: " & objWindow.Document.fileModifiedDate
End Sub