Baseline Widely available
Window.scroll()
ë©ìëë 문ì ë´ ì°½ì í¹ì ìì¹ë¡ ì¤í¬ë¡¤í©ëë¤.
scroll(x-coord, y-coord)
scroll(options)
매ê°ë³ì
x-coord
ë ì¼ìª½ ìë¨ì íìíê³ ì¶ì 문ìì ìíì¶ì ë°ë¥¸ í½ì
ì
ëë¤.y-coord
ë ì¼ìª½ ìë¨ì íìíê³ ì¶ì 문ìì ìì§ì¶ì ë°ë¥¸ í½ì
ì
ëë¤.- í¹ì -
options
ë¤ì 매ê°ë³ì를 í¬í¨íë ì¬ì .
top
ì°½ì´ë ìì를 ì¤í¬ë¡¤í Yì¶ì í½ì ì ì를 ì§ì í©ëë¤.
left
ì°½ì´ë ìì를 ì¤í¬ë¡¤í Xì¶ì í½ì ì ì를 ì§ì í©ëë¤.
behavior
ìì를 ìì¹ë¡ ì¤í¬ë¡¤íë ë¸ë¼ì°ì ë ë¤ì ì¤í¬ë¡¤ ëì ì¤ íë를 ê°ì§ ì ììµëë¤.
auto
(기본): ì¤í¬ë¡¤ ëìì ì¤í¬ë¡¤ ììì ìí´ ì¤ì ëê±°ë ììë scroll-behavior
CSS ì¤íì¼ì ìí´ ì ì´ë©ëë¤.smooth
: ì¤í¬ë¡¤ì´ ë¶ëë½ê² ìëí©ëë¤.ìì (undefined
).
<!-- put the 100th vertical pixel at the top of the window -->
<button onclick="scroll(0, 100);">click to scroll to the 100th pixel</button>
options
ì¬ì©:
window.scroll({
top: 100,
left: 100,
behavior: "smooth",
});
ì°¸ê³
Window.scrollTo()
ë ì´ ë©ìëì ì¬ì¤ì ê°ìµëë¤. ìëì ì¸ ì¤í¬ë¡¤ì ê²½ì° Window.scrollBy()
, Window.scrollByLines()
ê·¸ë¦¬ê³ Window.scrollByPages()
를 ì°¸ê³ íììì¤.
ì¤í¬ë¡¤ ììì ê²½ì°, Element.scrollTop
ê·¸ë¦¬ê³ Element.scrollLeft
를 ì°¸ê³ íììì¤.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4