Printed from BasicTips.com, FREE helpful articles and tips for Webmasters and Business Owners
Copyright © 1994-2006 by BasicTips.com, a division of BasicTemplates.BIZ
All rights reserved. Republication in whole or in part in any form is not permitted.

Sponsored by BasicTemplates.BIZ
Website Templates with External CSS and Removable Graphics
http://www.BasicTemplates.biz

Co-Sponsored by Effective-Website-Secrets.com
Teaching webmasters effective web development and marketing techniques via free podcasts.
http://www.Effective-Website-Secrets.com

Category: Web Design
Targeting an Iframe
By BasicTemplates with External CSS

Iframes are a bit tricky but worth the time to study up on how to use them. One of the most commonly asked questions regarding iframes is how to code the links to open a specific page into the iframe area.

You will notice that within the iframe code of a BasicTemplate index.html page, the iframe has been named, ie ... name="content"

If the design you are using has more than one iframe, each iframe must have a different name.

When you have a hyperlinked page that you want to pull into the iframe, add a target to the hyperlink code, like that shown below:

<a href="about.html" target="content">

The part of the code that makes this happen is target="content". This tells the browser that when a visitor clicks on the hyperlink to pull your about.html page (for example) into the target on the page named "content" which is the name of the iframe.

Related Articles:

Quick & Easy Inline Frames (iFrames)