1. Home
  2. Computing & Technology
  3. Web Design / HTML

How can I click a link and have it open in a different frame?

By Jennifer Kyrnin, About.com

Question: How can I click a link and have it open in a different frame?

Answer:

This is called targeting, and there are two steps to it:

  1. Give all your frames a name in the frameset:
    <frame src="" name="name_of_frame">
  2. When you add a link that you want to open in that frame, target that frame:
    <a href="" target="name_of_frame">

More Web Design / HTML Q&A

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. Frames
  7. How can I click a link and have it open in a different frame?

©2008 About.com, a part of The New York Times Company.

All rights reserved.