Nos bénévoles n'ont pas encore traduit cet article en Français. Aidez-nous à réaliser cette tâche !
Summary
Scrolls the document in the window by the given amount.
Syntax
window.scrollBy(X, Y);
Parameters
Xis the offset in pixels to scroll horizontally.Yis the offset in pixels to scroll vertically.
Positive co-ordinates will scroll to the right and down the page. Negative values will scroll to the left and up the page.
Example
// scroll one page window.scrollBy(0, window.innerHeight);
Notes
window.scrollBy scrolls by a particular amount where window.scroll scrolls to an absolute position in the document. See also window.scrollByLines, window.scrollByPages
Specification
Étiquettes et contributeurs liés au document
Étiquettes :
Contributors to this page: Jabez, quarterto, LouisLazaris, fscholz, Sheppy, teoli, JesseW, Watt, Frenzie, Waldo, Mgjbot, Ptak82, iamanupmenon, Dria
Dernière mise à jour par :
LouisLazaris,