We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e52cf3 commit d8be8b0Copy full SHA for d8be8b0
2-ui/1-document/10-size-and-scroll-window/article.md
@@ -73,6 +73,12 @@ alert('Current scroll from the left: ' + window.pageXOffset);
73
74
These properties are read-only.
75
76
+```smart header="Also available as `window` properties `scrollX` and `scrollY`"
77
+For historical reasons, both properties exist, but they are the same:
78
+- `window.pageXOffset` is an alias of `window.scrollX`.
79
+- `window.pageYOffset` is an alias of `window.scrollY`.
80
+```
81
+
82
## Scrolling: scrollTo, scrollBy, scrollIntoView [#window-scroll]
83
84
```warn
0 commit comments