function resetPageCt() {
document.getElementById("content"). contentWindow.location.href = pageArray[this.thisPage];
setTimeout("bumpPageCt("+this. thisPage+")",1000);
return false;
}
The
resetPageCt() function is a cross between the previously seen
resetBanner() and
bumpPageCt() functions plus a little more. Instead of letting the browser change the content window on its own, here, we reset it based on the
pageArray array. Once the content page has changed, we want to call the
bumpPageCt() function
after the content page has finished loading, so once again, we use
setTimeout(). And finally, we return false, because JavaScript is handling the page loading by itself.