onclick Property

Microsoft FrontPage Visual Basic

onclick Property

Sets or returns a Variant that represents the value of the onclick attribute that is the name of the script to run when the onclick event fires.

expression.onclick

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

The following example specifies the name of the script to run when a user clicks on the active document when it is displayed in a browser.

    ActiveDocument.body.onclick = "script()"