top left
The HTML Source Logo


 html
Top Right
    
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
 html
HTML
SEARCH THE SITE
advanced search



CATEGORIES
Home
Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
Link to us









































bottom
HTML HTML HTML HTML

How do I make sure people don't get stuck in my frames?



Why

If you are going to use frames in your web page, you have to make sure your viewers don't get stuck in them. If you have a link in one of your frames, that goes to another web site, when it is clicked, the web site will open up in that frame. This can get very annoying, to fix this, make sure all the links that are leaving your web site, to go to another web site, open in a new browser window.

How to do it

To make your links open in a new browser window, you have to target your link to a blank window. To do this add the following code to your link tag:
target="_blank"
So a basic text link to yahoo.com would look like this:
<a href="http://www.yahoo.com" target="_blank">Click Here</a>
A basic image link to yahoo.com would look like this:
<a href="http://www.yahoo.com" target="_blank"><img src="yourimage.gif"></a>

































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



Site hosted by Angelfire.com: Build your free website today!