Frames - Targets

Once, long ago, you learned how to make links pop up in targeted windows. That lesson is going to prove handy now. You remember how each frame received a different name? Than enables you to click on a link in one window and have the information in another window change.

There isn't much you need to do to get links to do this trick. Here's an example of a link that should look familiar, but a target has been added:
<a href="fuzzy.html" target="main">
You may notice that the target is the name of one of our frames. By telling the computer a target, you can click on a link and have the new page open in any frame you wish. Here is the page you saw before, only this time, you can click on a link and have a link open in another window.
Please see the frame

This is very useful for making a table of contents or simply having links do great things. Easy enough?

There is one more thing you can do with targets. You can use targets to get out of the frames completely. Instead of listing the target as the name of a frame, list the target as _top. It looks like this:
<a href="fuzzy.html" target="_top">
This will break you out of the frames and put the link into a fresh page.
Back Home Forward