Setting Frameset HyperlinksChapter 5, and you'll learn a lot more in Chapter 9. Here, though, you'll be setting up links in one frame, with destinations that will then open in another frame. In other words, links in one frame will control the content of another frame. But before we get to that, you need to know a bit about how to display a frameset file in the first place. Noteworthy
For a browser to display a frames-based layout properly, the browser needs the URL of the frameset page, not the URL for the individual pages within the frames. That's why it's a good idea to add "frameset" or "FS" to your frameset file nameso you'll know what file controls your frameset. Here's an example: Say your site has an opening splash page (remember, called index, because it's the opening page of your site) that links to your frames-based layout. On your opening page, you have to place a hyperlink that then links to the frameset file itself. If your link connects to just any one of the pages that appears within the frameset, only that frame will appear. So when linking to a frames-based layout, link to the frameset file, not to the pages that appear within the frameset. If your site includes an opening splash page that links to your frameset, make sure to link to your actual frameset file, not to a page that appears within your frameset. When linking to a frames-based layout, link to the frameset file, not to the pages that appear within the frameset. If you don't want to use a splash page, but instead want your frameset to open right away when a visitor navigates to your site, remember that you must name the frameset file itself using the default document name of the web server. Also, linking to your frameset file is fine when you're creating a hyperlink from your splash page, but when you're setting links within your frameset, whatever you do, don't link to your frameset file! If you do, you'll end up with recursive framing. Recursive framing occurs when a frameset opens within itselfa huge mess that even the savviest of web surfers can't dig out of. Another tricky aspect of working with frames is recursive framing, which occurs when a frameset opens within itself multiple times. This happens when hyperlinks within frames are not set correctly. Probably the biggest goof people make when they're working with frames-based layouts is not setting their links correctly. Links in framesets use the Property Inspector's Target menu, which specifies where a hyperlink's destination should open. It's an easy setting to miss, and that's why it's so easy to goof. Here's how to set hyperlinks within a frameset:
|