
frames, and just want to find out how to set links, this section is where you want to be. Setting links in a frameset is like setting any other links between pages, except that you need to specify the target frame, meaning the frame where the linked page will display when a user clicks on the link. For example, if you want a link in the left frame to control whats in the main frame, you need to specify the main frame as the target in the link. If you dont specify a target, the link opens in the same frame the link is in. Because the most common reason to use frames is to keep navigation links in one frame and open their corresponding pages in another, you probably want to target a frame when you set a link. If this seems confusing, dont fret. After you try the following steps, it should become clear how targets work in framesets: 1. Open an existing frame set or create a new frameset. In Figure 7-6, you see that I am using the Scenes from the Southwest Web site, which I created to use as an example in this chapter. 2. Highlight the text or click to select the image you want to serve as the link. In my example, I selected Sedona Sights. Note that this works the same whether you are creating a link with text or an image. Figure 7-6: Use targets to specify where a link opens in a frameset. Chapter 7: Framing Your Pages 191 3. In the Properties inspector, enter any URL in the Link text box or use the Browse button to select the page you want to link to. In my example, I used the Browse button to set a link to the file named Sedona-sights.html. 4. From the Target drop-down list in the Properties inspector, choose the name of the frame that you want the link to open into. In my example, I selected the mainFrame frame as the target. You should choose the name that corresponds to the frame where you want your linked page to open. Notice that Dreamweaver conveniently lists all the frames you named in your document in the Target drop-down list, which I have open in Figure 7-6. The result, as shown in Figure 7-7, is that when the frameset displays in a browser and a user clicks the graphic that says Sedona Sights in the left frame, the page named sedona-sights.html displays in the main frame area. You cant test your links until you preview your work in a browser, and you have to save your work before you preview it. Figure 7-7: The selected link opens the page and targets the main frame area. In this example, the Sedona Sights page opens.