top left
The HTML Source Logo

Top Right
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
advanced search

Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
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%>
<frame src="left.html" name="leftside">
<frame src="right.html" name="rightside">
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="" target="rightside"></a>
An image link would look like this:

<a href="" target="rightside"><img src="image.gif"><:/a>

Company   |   Careers   |   Partners   |   Advertising   |   Help
Privacy Policy   |   Trademark Notices   |   User Agreement
2001, INC. All Rights Reserved.

Site hosted by Build your free website today!