Guest_imported
New member
- Jan 1, 1970
- 0
I'm trying to figure out the coding to force child pages to open in the main frame and am having a hard time.
I found some scripts in a Javascript book that are supposed to do what I want but I'm not sure how to apply them. This method called for a script on the frameset page as well as each child page.
Then I found this script (following) on the Net that seems to use the child page script from above without the frameset script. Is this the way to go? Will it do what I want?
<SCRIPT LANGUAGE="JavaScript">
<!--
if (window == top) top.location.href = "index.htm";
// -->
</SCRIPT>
I found some scripts in a Javascript book that are supposed to do what I want but I'm not sure how to apply them. This method called for a script on the frameset page as well as each child page.
Then I found this script (following) on the Net that seems to use the child page script from above without the frameset script. Is this the way to go? Will it do what I want?
<SCRIPT LANGUAGE="JavaScript">
<!--
if (window == top) top.location.href = "index.htm";
// -->
</SCRIPT>