Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Window.scrollBy() 메서드는 창에 있는 문서를 지정된 양만큼 스크롤합니다.
- 혹은 -
options다음 매개변수가 포함된 사전.
top창 또는 요소를 스크롤할 Y축을 따라 픽셀 수를 지정합니다.
left창 또는 요소를 스크롤할 X축을 따라 픽셀 수를 지정합니다.
behavior스크롤이 부드럽게 애니메이션되는지 (smooth), 한 번의 점프로 즉시 실행되는지 (instant), 또는 브라우저가 선택하도록 할지 (auto, 기본)를 지정합니다.
없음 (undefined).
한 페이지 아래로 스크롤하려면.
위로 스크롤하려면.
options 사용.
window.scroll()가 문서의 절대 위치로 스크롤하는데 반해, window.scrollBy()는 특정 양만큼 스크롤합니다. window.scrollByLines()와 window.scrollByPages()를 참조하십시오.
| CSSOM View Module # dom-window-scrollby |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023년 7월 30일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.