three
10-12-2001, 04:09 PM
I want to make sure a page is always displayed within it's frames. For example if you view "page.html" alone, I want it to automatically check and then reload it within a specified frameset. Does anybody have the javascript for this?
I tried using the following script, but it doesn't work on a mac (it repeatedly refreshes forever).
<SCRIPT>
function checkStatus() {
page = self.location.href;
if (page != "index.html") {
top.location.href = "index.html";
return true;
}
}
</SCRIPT>
<body onLoad="checkStatus()";>
thanks
I tried using the following script, but it doesn't work on a mac (it repeatedly refreshes forever).
<SCRIPT>
function checkStatus() {
page = self.location.href;
if (page != "index.html") {
top.location.href = "index.html";
return true;
}
}
</SCRIPT>
<body onLoad="checkStatus()";>
thanks