|
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>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.