o8lbgg
Last Updated: August 15, 2016
·
697
· domon
3fe8ae238c14d716a9fc16734a70765b

Keep scrolling to bottom of a web page with JavaScript

Paste the following to the console of developer tools:

var scrollToBottom = function() {
  window.scrollTo(0, document.body.scrollHeight);
}
var delay = 2000;
var intervalID = setInterval(scroll, delay);

To stop scrolling, use the following code:

window.clearInterval(intervalID);
Say Thanks
Respond