Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q334 How can I cycle through several HTML files with a timeout set between each page?

You are here: irt.org | FAQ | JavaScript | Timeout | Q334 [ previous next ]

You'll need to use a frameset which reloads one of the frames with another document:

<SCRIPT LANGUAGE="JavaScript"><!--
function loadOne() {
    window.frames[0].location.href = 'apage.html';
    setTimeout("loadTwo()",5000);
}

function loadTwo() {
    window.frames[0].location.href = 'bpage.html';
    setTimeout("loadThree()",5000);
}

function loadThree() {
    window.frames[0].location.href = 'cpage.html';
}

setTimeout("loadOne()",5000);
//--></SCRIPT>

Feedback on 'Q334 How can I cycle through several HTML files with a timeout set between each page?'

©2018 Martin Webb