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!

Multiple Frames Pages: Targeting to proper frame from any frame&link

Status
Not open for further replies.

gal

Programmer
Mar 5, 2002
25
US
Am successfully using JavaScript to change contents of multiple frames in the frameset with one click. Because of the Javascript programming, am using several pages that have similar looking frames.
Several layers of framesets drill down to another page/frameset with each click. Target="_top" successfully overlays the previous frameset.

Problem: Two frames have links that can pull up an Unframed page, but the page is being pulled to the "_top" instead of into the desired frame. Some of the pages pulled in also contain their own framesets. How do I force the lower level links to pull into the lower right frame whether or not the link itself it coming from the same or another frame? I am using FrontPage98 which will not allow me to change the targets from self or top. Also, if the link is coming from a framed page within a framed page, can I refer to the "container" page? Examples are most welcome!
 
Change the Javascript to something like:
onClick='window.self.location="yourpage.htm"'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top