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월.
문서의 지정된 위치로 스크롤합니다.
- 또는 -
options다음 매개변수가 포함된 딕셔너리
top창 또는 요소를 스크롤할 Y축을 따라 픽셀 수를 지정합니다.
left창 또는 요소를 스크롤할 X축을 따라 픽셀 수를 지정합니다.
behavior스크롤을 즉시 적용할지 아니면 부드러운 애니메이션을 적용할지 결정합니다. 이 옵션은 다음 값 중 하나의 문자열을 취해야 합니다.
없음 (undefined)
이 함수는 window.scroll과 효과적으로 같습니다. 스크롤링 관련 정보는 window.scrollBy, window.scrollByLines, 그리고 window.scrollByPages가 있습니다.
| CSSOM View Module # dom-window-scrollto |
This page was last modified on 2024년 12월 17일 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.