scrollIntoView Method

Microsoft FrontPage Visual Basic

scrollIntoView Method

Scrolls the page so the an element is positioned at the top of the page window.

expression.scrollIntoView(varargStart)

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

varargStart    Optional Variant. Specifies the element to scroll into view.

Example

The following example scrolls the first table in the active document so that it is positioned at the top of the page window.

    Dim objTable As FPHTMLTable

Set objTable = ActiveDocument.all.tags("table").Item(0)
objTable.scrollIntoView