HTML Cheat Sheet
HTML Help Forum
Link to us
How do I make my links open in another frame?
So you want a link in one frame, to open up in another frame. To do this, you have to target your links.
You can target a link by using the target="?" tag. Replace the ? with where you want to open the link.
So now you have to find out the name of the frame you want the link to open in. In your index.html (or whatever page you are using to put your frames together) you should see something that looks like this (not exactly, but similar):
<frameset cols=20%,80%>So for example, I wanted my link to open up on the right.html frame. The name of this frame is rightside, so my target tag would be target="rightside". If I wanted my links to open up on the left.html frame, my target tag would look like this target="leftside".
If your frame does not have a name, just place a name="?" within the frame code, replacing the ? with what you want to name the frame.
Once you have the name of the frame, you can put it in your target tag, and place the target tag it in your link code.
So if I had a link in my left.html page, and I wanted it to open in my right.html, my text link would look like this:
<a href="http://www.yahoo.com" target="rightside">Yahoo.com</a>An image link would look like this:
<a href="http://www.yahoo.com" target="rightside"><img src="image.gif"><:/a>
© 2001 TheHTMlSource.com, INC. All Rights Reserved.