HTML Cheat Sheet
HTML Help Forum
Link to us
How do I make sure people don't get stuck in my frames?
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>
© 2001 TheHTMlSource.com, INC. All Rights Reserved.