JavaScript: The Definitive Guide

25.315. Window.scrollBy( ): scroll the document by a relative amount

JavaScript 1.2:

25.315.1. Synopsis

window.scrollBy(dx, dy)

25.315.1.1. Arguments

dx

The number of pixels by which to scroll the document to the right.

dy

The number of pixels by which to scroll the document down.

25.315.2. Description

scrollBy( ) scrolls the document displayed in window by the relative amounts specified by dx and dy.

Категории