Share via


onfinish Property

Returns or sets a Variant that represents the value of the onfinish attribute that is the name of the script to run when the onfinish event fires.

expression.onfinish

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

Example

The following example sets the onfinish attribute for the first MARQUEE element in the active document.

Dim objMarquee As FPHTMLMarqueeElement

Set objMarquee = ActiveDocument.all.tags("marquee").Item(0)

objMarquee.onfinish = "script()"

Applies to | FPHTMLMarqueeElement Object | IHTMLMarqueeElement Object