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

Q580 How can I detect when a page hasn't loaded within, say, 30 seconds?

You are here: irt.org | FAQ | JavaScript | Misc | Q580 [ previous next ]

Using frames maybe:

<html>
<head>
<script language="JavaScript"><!--
var found = false;

function checkIfFound() {
    if (!found)
        alert('Page not loaded');
}

setTimeout('checkIfFound()',10000);
//--></script>
</head>

<frameset onLoad="found=true" cols="100%,*">
<frame src="mypage.htm">
<frame src="blank.htm">

</html>
</frameset>

©2018 Martin Webb