Created
November 23, 2020 20:41
-
-
Save ouyi/65529e49143d0b5aafbba692f5da1e57 to your computer and use it in GitHub Desktop.
Automatically scroll page up and down in JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(() => { window.scrollTo(0, document.body.scrollHeight); window.scrollTo(0, 0); }, 60000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment