JavaScript DOM HTML method: scrollIntoView()
[this page | pdf | back links]
The scrollIntoView() method (when applied to
HTML
elements in the JavaScript
DOM) scrolls
specified element into visible area of browser window.
It
has the following syntax with the following parameters. It does not return
a value.
element.scrollIntoView(alignment)
Parameter
|
Required / Optional
|
Description
|
alignment
|
Optional
|
Boolean. If true the top of element will be
aligned with the top of the visible area of the scrollable ancestor, if false then the bottoms aligned
instead. If omitted then tops are aligned
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)