one link multiple targets

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I've been looking for the best way to make a page that consists of
three frames, one page-wide frame for a title on top with two colums
beneath. There are situations where I want to change all three frames
through one link. So far I have found two ways to do this, they work,
but I'm not completely satisfied.

The first one is the simplest: just make a frameset page for every
possible combination of pages I want to display simultaneously, but
this is too much of a hassle and I suppose it can be done more

The second involves javascript (from ):

<!-- Begin
function loadFrames(frame1,page1,frame2,page2,frame3,page3) {
// End -->


<a href="javascript:loadFrames('titlewindow', 'Title.html',
'mainwindow', 'Main.html', 'leftwindow', 'Left.html')">link</a>
It works but the problem here is that when you hit the "back"-button
in your browser only one of the frames goes back to the previous page,
which results in (for instance) the wrong title for a page. If you hit
the "back"-button again, again only one frame goes back.

My question is if somebody knows how to solve the problem with the
javascript-option or knows something completely different that works
well. It might help that the links are never in the title window,
always in the bottom two.


Re: one link multiple targets

Jos wrote:
Quoted text here. Click to load it

This may appear to be facetious but, genuinely, why are you making all that
trouble for yourself? Build the pages without frames and the problem's
solved - there surely aren't any benefits to you feel you're getting from
frames that are worth that amount of trouble.

Perhaps you could outline what you're wanting to achieve as regards the
layout - I can't help feeling that you're solving the wrong problem.

If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Site Timeline