1.

Solve : How do I change two frames with one link??

Answer»

I have an historical website, part of which is about a trial in Britain in the 18th century. The prosecution presented 9 witness, and this part of the trial was reported by TWO sources, the "official" SOURCE, and an independant source. What I want site visitors to be able to do, is compare the testimony of each witness from the two sources side by side.
I thought it would be simple; a frame at the top with a link for each witness, and two frames below, one with the "official" VERSION, and one with the "published" version; but I don't know how to change both frames with one link. Can someone tell me how to do this?
I'm not married to frames, if there is a better way to do it (without getting too complicated) I'd be glad to hear that, too.
Thanks.seems LIKE a SCRIPT with the location object would work.
maybe something like this:


function changeframes() {
  document.all.frame1.location="http://yahoo.com";
  document.all.frame2.location="http://google.com";
}


--------------------

click[/url]

Please note that I haven't tested this at all. You may have to do a bit of tweaking/researching to get it right.



Discussion

No Comment Found