Share via


onstart Property

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

expression.onstart

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

Example

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

Dim objMarquee As FPHTMLMarqueeElement
    
Set objMarquee = ActiveDocument.all.tags("marquee").Item(0)
    
objMarquee.onstart = "script()"

Applies to | FPHTMLMarqueeElement Object | IHTMLMarqueeElement Object