View Full Version : links in multiple framesets.

07-10-2002, 05:48 PM
I have a frameset within a frame of another frameset. The first frameset contains three frames: txtFrame(the mainframe), logoFrame(top), navFrame(navigation :) ) In the navFrame I have a frameset which contains another three frames: homeFrame(home button),Sitemap( sitemap button) and mainFrame(which contains all other buttons. One of the buttons in the mainFrame has to load another page in this frame and load another page in txtFrame. I've tried to do it with parent.txtFrame.location="page.html" but I recieve the error that txtFrame is not an object.

Does anybody know how I can solve this?

Thanks in advance!

07-11-2002, 12:17 AM
I got a headache just reading this..:confused:

Just use top to hop up to the uppermost window ('highest' <frameset> document) and then work your way back down to that 'txtFrame' item. Something like:


07-11-2002, 12:20 AM
Also, a source code might help solve this... ;)

I got completely confused reading that message......:confused: :confused:

07-11-2002, 09:38 AM
Check out this tutorial on frames (http://www.javascriptkit.com/javatutors/twoframes1.shtml) and see if it helps you; there's also general info on linking to frames using JavaScript.

Having read the turorial myself, i guess your initial attempt should work; have you checked for correct spelling? If in doubt, don't use capitals; they may confuse issues.

07-11-2002, 02:33 PM
I've tried the solution Adios provided. It worked, thanks a lot. I guess I don't need to put the source code up here now right?

Thanks again, y'all.