[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/API/Window/scrollTo [Back]  [Original]

Window.scrollTo() - Web API | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Window.scrollTo()

Baseline Widely available *

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 7.

* Some parts of this feature may have varying levels of support.

.

In this article

js
window.scrollTo(x_, y_);

  • x_ .
  • y_ .

- -

options

top

Y .

left

X .

behavior

. .

(undefined)

js
window.scrollTo(0, 1000);

window.scroll . window.scrollBy, window.scrollByLines, window.scrollByPages .

Specification
CSSOM View Module
# dom-window-scrollto

Web Proxy Viewer  |  New URL  |  Original Page