detect if image/page has loaded

admin

Administrator
Staff member
hi i was wondering how i can detect if a page had finished loading before a script runs? i'm using the following code, but it runs before the main image even loads. it's for an image slide show.

<SCRIPT LANGUAGE="JavaScript">
setTimeout("launch()",8000);
function launch(){
location.href = "nextpage.htm";
}
</SCRIPT>

thanks,
steve
 
Back
Top