I'm sure you've visited sites that use frames. (BlackBoard comes to mind.)
These have a part of the page that always remains constant whatever else
is happening. Usually this constant section will be the navigation of
the site, or the ads supporting the site. Many of these sites may not
"appear" to have frames as illustrated in Lemay, but that's only because
the designer set the attribute -- frameborder="0". As you read Lemay, you'll notice that it takes several pages plus the frameset page to create one viewable page on the web. But from that point, each new page can be set to load in the main window. If you want to view the frameset code, use View Source. If you want to view the code for a portion of the frame, right-click on that section and view page source. There is a lot of controversy about frames vs. tables. Is it better to create a frameset and one navigation bar, or have to copy a table with the navigation onto each page? Does the use of a frame reduce the size of the working window? Do users follow the navigation of a frame or do they get lost? Is maintaining the site easier with frames or not? And a frame designer must ensure that a frame doesn't load within a frame, thus reducing visibility even more. We will do no more work with frames in this course, but you should be aware of them as you "surf" the net. You'll be dealing with, and using, frames in the next course.
Magic Target Names(p381) A possible problem is that some viewers get confused, wondering why they can't go "back" to the previous screen. They don't realize that they simply need to close the current window. I sometimes include some instruction with this tag to let the visitor know what's happening (I did this in Lesson 8). Keep this lesson simple! Just add the target="_blank" attribute to one (or more) of your existing external links. That's it! By the way, it's generally better not to use the target="_blank" attribute on a link within a site. You can end up with all of your pages being displayed at the same time -- confusing! You may, though, have a page of information that relates very directly to a major page of the site. Then you might want to use the target="_blank" for an internal link. As an example: see what I did with the "example" and "additional instructions" from Lesson 7 and Lesson 8. |
Return to Class Pages/Lesson Comments home page
or use the CourseInfo navigation buttons (or your browser's back button) to return to the course.