You are on page 1of 1

//To avoid naming conflicts, give a non common names to the function and variable

var bytefreaksTimeout;

function bytefreaksScroll() {
window.scrollBy(0,1000);
bytefreaksTimeout = setTimeout(bytefreaksScroll,10);
}

bytefreaksScroll();

As you will see in the following video, the scrolling was working flawlessly, once
the scrolling reached the place we needed it to we used the following line in the
console to stop the scrolling.
1

clearTimeout(bytefreaksTimeout);

You might also like