Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Peter Roche
30369a8f8e
Update article.md
Slight wording change to previous patch.
2021-04-13 22:24:36 -06:00
Peter Roche
5b14645cd8
Mention scrollX and scrollY
They are how pageOffsetX and pageOffsetY are listed in MDN. For completeness, and so a search for one of those terms will bring up this page.
2021-04-13 22:10:01 -06:00

View file

@ -73,6 +73,8 @@ alert('Current scroll from the left: ' + window.pageXOffset);
These properties are read-only.
(note: `pageXOffset` and `pageYOffset` are aliases for `scrollX` and `scrollY`, but may provide somewhat greater cross-browser compatibility.)
## Scrolling: scrollTo, scrollBy, scrollIntoView [#window-scroll]
```warn