Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q776 How can I scroll through a page automatically?

irt.org | Knowledge Base | JavaScript | Scroll | Q776 [ previous next ]

Q776 How can I scroll through a page automatically?

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.