You are here: irt.org | FAQ | JavaScript | Scroll | Q776 [ previous next ]
The scrollBy method introduced in Netscape Navigator 4 and Internet Explorer 4 allows the document to be scrolled in increments. With the assitance of a timer you can scroll all the way down to the bottom of a document:
<SCRIPT LANGUAGE="JavaScript"><!-- function myScroll() { window.scrollBy(0,100) setTimeout('myScroll()',1000); // scrolls every 1000 miliseconds } if (document.layers || document.all) myScroll() //--></SCRIPT>