Advertisement
kkDav1337

Auto Scroll to Bottom on <body> with Interval 500

Jun 3rd, 2020
12,775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function autoScroll() {
  2. window.scrollTo(0, document.body.scrollHeight);
  3. window.scrollTo(0, document.body.scrollTop);
  4. window.scrollTo(0, document.body.scrollHeight);
  5. window.scrollTo(0, document.body.scrollHeight);
  6. window.scrollTo(0, document.body.scrollHeight);
  7. }
  8. setInterval(autoScroll, 500);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement