onscroll Property
Returns or sets a Variant that represents the value of the onscroll attribute that is the name of the script to run when the onscroll event fires.
expression.onscroll
*expression * Required. An expression that returns one of the objects in the Applies To list.
Example
The following example sets the onscroll attribute for the BODY element in the active document.
ActiveDocument.body.onscroll = "script()"
Applies to | FPHTMLBody Object | FPHTMLButtonElement Object | FPHTMLDivPosition Object | FPHTMLFieldSetElement Object | FPHTMLLegendElement Object | FPHTMLMarqueeElement Object | FPHTMLSpanFlow Object | FPHTMLTableCaption Object | FPHTMLTableCell Object | FPHTMLTextAreaElement Object | FPHTMLWindow2 Object | FPHTMLWindowProxy Object | IHTMLTextContainer Object | IHTMLWindow2 Object