ScrollIntoView Method

Scrolls the specified element into the visible area of the document.

Syntax

object.ScrollIntoView ([alignToTop])

Applies To

DomTextRange Object

Parameters

alignToTop: Optional. Boolean that indicates the type of the align.

One of the following values:

Value Description
false The bottom of the element will be aligned to the bottom of the scrollable ancestor object.
true Default. The top of the element will be aligned to the top of the scrollable ancestor object.

Return Type

None