OnDeactivate Event

Microsoft FrontPage Visual Basic

Occurs when a user switches to another application window and the active Web site window loses the focus.

Private Sub expression_OnDeactivate( )

expression     A variable name which references an object of type WebWindowEx declared using the WithEvents keyword in a class module.

Example

The following example displays a message to the user when the window is deactivated.

Private Sub objWebWindow_OnDeactivate()
'Occurs when the current web window is deactivated

    MsgBox "The window has been deactivated."

End Sub