Questions about Frames

instanoodles

New member
I am making a webpage with 2 frames on it, how would I get a button in one frma to change the pages in the other frame if you can do that.
I am also using adobe golive to make the site.
 
you "target" the frame you want the link to open in. For instance, you have a frameset defined as such:
Code:
<frameset  cols="200,*">
    <frame name="frame1" src="frame1.htm" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
    <frame name="frame2" src="frame2.htm" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
</frameset>
The "name" attribute is very important here. As you can see, the frame named "frame1" would be suitable for a navigation area, and "frame2" would be suitable for contents ("frame1" being fixed at 200 pixels and "frame2" set to fill whatever is left). To make links that are in the "frame1.htm" source document open in the "frame2" window you simply use the link attribute "target" and specify "frame2", like such:
Code:
<a href="somepage.htm" target="frame2">A link in frame1 which you want to open in frame2</a>

sorry if I went overboard with the explaination, that's my nature :)
 
Back
Top