Share this Page URL

HTML 4.01 Reference (A to Z) > ISINDEX (D) - Pg. 205

SUNDAY MORNING Working with Frames 203 Add a link menu to the top bar page that controls the content of the main frame: <table> <tr><td width="125"> <h3><font face="Arial, Geneva, Helvetica, sans- serif">Contents:</font></h3> </td><td> <p>[<a href="coleridge.html" target="main">Coleridge</a>]&#160; [<a href="byron.html" target="main">Byron</a>]&#160; [<a href="wordsworth.html" target="main">Wordsworth</a>]&#160; [<a href="shelley.html" target="main">Shelley</a>]&#160; [<a href="keats.html" target="main">Keats</a>]&#160; [<a href="tennyson.html" target="main">Tennyson</a>]&#160; [<a href="rbrowning.html" target="main">R.&#160;Browning</a>]&#160; [<a href="ebrowning.html" target="main">E.&#160;Browning</a>]&#160; [<a href="bronte.html" target="main">E.&#160;Bronte</a>]&#160; [<a href="front.html" target="main">Go to Front</a>]</p> </td></tr> </table> As with the sidebar menu in the two-column frame page example, you'll notice in this example that the target="main" attribute causes the objects of the links to be displayed in the "main" frame (which is the lower-row frame in this example frameset). For this to work, the FRAME element in the frameset page must include name="main" . These must match exactly-- if you've got "main" in one place, but "Main" in the other, the links won't work. Note also that non-breaking spaces ( &#160 ;) are used in this example to allow the display of double spaces between links and to prevent line breaks from occurring inside of a link.