Hoi iedereen
Ik heb het volgend scriptje dat helaas niet werkt:
<html>
<head><title>test.html</title></head>
<SCRIPT LANGUAGE="JavaScript">
function checkFrame() {
var obj = document.frames.frame;
if (obj.document.title != "The page cannot be found") {
obj.location = "fout.html";
}
}
</SCRIPT>
<body onload="frame.location.href = self.location.search.substr(1)">
<iframe name="frame" height="100%" width="100%" align="middle" border="0" frameborder="no"> </iframe>
</body></html>
Graag zou ik, indien de pagina niet kan worden weergegeven, een alternatieve (fout) pagina weergeven in het frame.
Kan iemand mij hierbij helpen?
Alvast bedankt voor jullie feedback
Ik heb het volgend scriptje dat helaas niet werkt:
<html>
<head><title>test.html</title></head>
<SCRIPT LANGUAGE="JavaScript">
function checkFrame() {
var obj = document.frames.frame;
if (obj.document.title != "The page cannot be found") {
obj.location = "fout.html";
}
}
</SCRIPT>
<body onload="frame.location.href = self.location.search.substr(1)">
<iframe name="frame" height="100%" width="100%" align="middle" border="0" frameborder="no"> </iframe>
</body></html>
Graag zou ik, indien de pagina niet kan worden weergegeven, een alternatieve (fout) pagina weergeven in het frame.
Kan iemand mij hierbij helpen?
Alvast bedankt voor jullie feedback