Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing pages into frame

Status
Not open for further replies.

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=&quot;JavaScript&quot;>
<!--
if (window == top) top.location.href = &quot;index.htm&quot;;
// -->
</SCRIPT>
 
Just that bit of script on each page? Nothing on the frameset page? Does this bit of code find the frameset page?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top