bacterozoid
11-30-2002, 07:12 PM
It works, but I've never used anything like this before, so I wasn't sure if it was done right.
<SCRIPT LANGUAGE="JavaScript">
if (top.location.href == window.location.href) {
window.document.location = "index.htm"
}
</SCRIPT>
...Where index.htm is the frameindex page. It simply checks the href, and if it matches (which it will if only one frame is being viewed) it sends you to the frame index page.
<SCRIPT LANGUAGE="JavaScript">
if (top.location.href == window.location.href) {
window.document.location = "index.htm"
}
</SCRIPT>
...Where index.htm is the frameindex page. It simply checks the href, and if it matches (which it will if only one frame is being viewed) it sends you to the frame index page.