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

Lesson 10. 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.

In nav_bar.html on a new paragraph line below the navigation table, type Copyright and format it as Verdana, –2. Place a non-breaking space before the word “Copyright” by pressing Option+Space (Macintosh) or Ctrl+Shift+Space (Windows). Select “Copyright” and create a link to copyright.html by typing copyright.html in the link text field on the Property inspector.

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.

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

This option forces the Copyright document to be placed in the content frame (the bottom right frame) when the Copyright 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.


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 into the target text field the exact name of the frame you want to target.

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.

Save the file and preview it in the browser.

When previewing your frames pages in the browser, you may get a dialog box informing you that all the frames need to be saved. You can click OK to save all frames. All frames and the frameset must be saved in order to preview the pages in the browser.

When you click the Copyright link, the copyright.html document displays in the content frame.


If your pages don't appear in the frames you expect them to, check to see that you have selected the correct frame from the Target drop-down menu in the Property inspector for each link.

When you created the navigation bar, you defined where the linked pages would appear in the drop-down menu that was located just to the right of the When Clicked, Go To URL drop-down menu in the Navigation Bar dialog box. The links should open all of the pages in the content frame—if not, you will need to correct the target using the drop-down menu on the Navigation Bar dialog box.



Not a subscriber?

Start A Free Trial

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