LESSON 40: LINKING INTO FRAMES
- Study the index cards on Linking Into Frames. I've included a hard copy of these
index cards, for your convenience.
- Be sure that you can answer all the following questions, which are fair game for quizzes and
tests.
- When you have a link in a framed document, where does the linked document load, by default?
- When you link, you often think that you're "going somewhere". But, for the purpose of linking within
framed documents, what is a better viewpoint?
- Fill in the blanks: Sometimes you may not want a linked document to load into the same frame.
By
the desired target frame, and then using the
attribute in the anchor tag, you can load into any frame that you want.
- Fill in the blanks: If a link contains a target name that does not exist in the current (framed or unframed)
document, then a
is opened to display the linked document, and the newly-opened window is given the
name.
- One common use of frames is to have a narrow table of contents on the left; each entry loads the specified
document into the main frame on the right. Suppose that the main frame is named "main". It's a nuisance to have
to type
TARGET="main"
in every single table of content entry. What can you do instead?
- What happens if you have
< BASE TARGET="main">
in the HEAD section,
but a particular link says TARGET="here"
. Where will the link load?
- What does the phrase "busting out of a frameset" mean?
- How can you "bust out of a frameset"?
- If you, the user, have "busted out of a frameset," how can you get back to the framed document?
- Do worksheet items (W40.1) through (W40.6) from the original lesson,
Linking Into Frames. Show me that it works! (20 points)
- Read pages 246 (from "Frame Design Tips and Tricks") to page 248.
Be sure that you can answer all the following questions, which are fair game for quizzes and
tests:
- Suppose you design a web page to be part of a framed document. Is there any guarantee that it will always
be viewed that way?
- How might a document that is designed to be part of a frameset end up being viewed out
of this context?
- Is there a way to use JavaScript to ensure that a page is always viewed in its original frameset?
- By and large, do search engines understand frames, or any content within
frameset
or frame
tags?
- Do search engines read content within the
<noframes>
tag?
- Can you have a link within a
<noframes>
tag?
- Suppose you have a framed document with a Table of Contents, and a main page that displays the chosen selection.
What link should you put in the
<noframes>
tag?
- Should you use titles for each document in a framed document? If so, why?
- Is it possible for a single link to change the contents of two frames at once?
- Write the code that appears on the top of page 248, with appropriate changes and with your own files,
to use HTML to load two (side-by-side) frames from a single link. Show me that it works! (10 points)
- Write the HTML/JavaScript code that appears on the bottom of page 248, with appropriate changes and
with your own files, to load two frames with a single click. Show me that it works! (10 points)
THE QUIZ OVER THIS LESSON WILL CONSIST OF:
- (15 pts) Questions from the index cards and reading (see below).
There will be 18 randomly-chosen questions; you will cross off 3 questions.
The remaining 15 questions are worth 1 point each.
- (30 pts total) CODING PART:
The coding part will be modeled on exercises (W40.1) through (W40.6).
Prepare for the quiz over this section by practicing below.
Questions are asked in random order.
You can generate a printable quiz with solutions.