Frames

wxdqz

New Member
When a sub-document of a frameset is accessed directly (e.g. from a search engine), it appears without the context of the surrounding frameset. To restore the frameset context, I'm use the following script:

<SCRIPT TYPE="text/javascript">
<!--
if (window.location.href == top.location.href) {
if (window.location.replace)
window.location.replace('frameset.html');
else
// causes problems with back button, but works
window.location.href = 'frameset.html';
}
//-->
</SCRIPT>

However, it seems to cause the initial frameset to be shown, whereas I want it to show the frameset with the requested sub-document embedded therein.

This must be something of a FAQ, for frames enthusiasts at least.

Any ideas?
 
Back
Top