Skip to content

Instantly share code, notes, and snippets.

Created Nov 23, 2020
What would you like to do?
Automatically scroll page up and down in JavaScript
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