• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 9. Creating Frames > Controlling Frame Content with Links

Controlling Frame Content with Links

After you have created the content document pages, you need to link the navigation elements to the pages that should display in the content area of your Web page. To get the content to appear in its proper location, you need to target the link.

1.
In nav.htm, select the word “Kayaking.” Create a link to kayaking.htm by typing kayaking.htm in the Link text field on the property inspector, or by clicking the folder icon next to the Link text field and browsing to find kayaking.htm in the Lesson_09_Frames folder.

By default, links are targeted to the frame or window in which they are located. However, you want this link to open in the content frame, not the nav frame.

2.
In the property inspector, select content from the Target drop-down menu.

This option forces the Kayaking document to be placed in the content frame (the bottom-right frame) when the Kayaking link is clicked in the browser. Whenever you create a new frame, the name of that frame is automatically added to the Target drop-down menu.

NOTE

If you are working on a document that will be loaded in a frame, and you are not working on it inside the frameset as you are in this exercise, you won't have the option in the Target menu to select the names of any frames. Dreamweaver only displays the names of frames that are available in the current document in the Target menu. In this case, you will need to type the exact name of the frame which you want to target into the Target text field.

There are other options available in the Target drop-down menu.

_blank loads the linked document in a new, unnamed browser window.

_parent loads the linked document in the parent frameset of the frame that contains the link. If the frame containing the link is not nested, the linked document loads into the full browser window.

_self loads the linked document in the same frame or window as the link. This target is implied, so you usually don't have to specify it.

_top loads the linked document in the full browser window, thereby removing all frames.

3.
Save the file and preview it in the browser.

When you click the Kayaking link, the kayaking document displays on the right.

4.
Repeat steps 1 and 2, linking Surfing to surfing.htm and Rock Climbing to climbing.htm.

Remember to select the target so that these pages will open in the content frame.

5.
Save your file and preview it in the browser.

If your pages don't appear where you expect them, check to see that you have selected content from the Target drop-down menu in the property inspector for each link in the navigation.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint