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

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

irt.org | Knowledge Base | JavaScript | Misc | Q580 [ previous next ]

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

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


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