Monday, September 30, 2019

Body Scroll Bar  
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);

No comments:

Post a Comment