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.scroll() 메서드는 문서 내 창을 특정 위치로 스크롤합니다.
- 혹은 -
options다음 매개변수를 포함하는 사전.
top창이나 요소를 스크롤할 Y축의 픽셀의 수를 지정합니다.
left창이나 요소를 스크롤할 X축의 픽셀의 수를 지정합니다.
behavior요소를 위치로 스크롤하는 브라우저는 다음 스크롤 동작 중 하나를 가질 수 있습니다.
없음 (undefined).
options 사용:
Window.scrollTo()는 이 메서드와 사실상 같습니다. 상대적인 스크롤의 경우 Window.scrollBy(), Window.scrollByLines() 그리고 Window.scrollByPages()를 참고하십시오.
스크롤 요소의 경우, Element.scrollTop 그리고 Element.scrollLeft를 참고하십시오.
| CSSOM View Module # dom-window-scroll |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 11월 9일 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.