Forum Moderators: open

Message Too Old, No Replies

Linking frames together

         

Adam5000

2:05 pm on May 29, 2007 (gmt 0)

10+ Year Member



I've got a page with two frames on it and I'm trying to link them together.

What I'd like to do is change the page in frame two by clicking on a link in frame one.

Below is what I've got so far. Help!

<html>

<frameset cols="25%,*">

<frame src="link_page.htm">
<frame src="frame_two.htm">

</frameset>

</html>

jimbeetle

2:24 pm on May 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Target [w3.org].

Adam5000

8:43 pm on May 29, 2007 (gmt 0)

10+ Year Member



Thanks for your help Jim. I'm going to try to do it with javascript. I've got here in the javascript section and maybe you can help with that too.

Adam5000

8:44 pm on May 29, 2007 (gmt 0)

10+ Year Member



. . . got a post here in the javascript section . . .

tedster

9:18 pm on May 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You do not need javascript to do this -- it is standard behavior for a frameset. Just give a name and/or id to each of the two individual frames and then add the attribute target="frameneame" attribute to the link.

[edited by: tedster at 4:09 am (utc) on June 2, 2007]

Adam5000

3:07 am on Jun 2, 2007 (gmt 0)

10+ Year Member



Ted and Jim. Thanks for your help. And it's a bit of a complicated page so I'm going to give it a rest for a few days.