Tutorial 15: You've been Framed, Part II - HTML with Style | 4
Tutorial 15: You've been Framed, Part II
Frames stay around
Another often-encountered gripe I get from a lot of readers is that when you load a new document in a frame, it's not easy to change more than one frame at once. This is the reason I set some of the exercises in the last tutorial. Imagine the following frameset:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "https://www.w3.org/TR/REC-html40/frameset.dtd"> <HTML> <HEAD><TITLE>M.O.R.O.N.S. White Paper</TITLE></HEAD> <FRAMESET ROWS="20%,*"> <FRAME NAME="toc" SRC="toc.html"> <FRAMESET COLS="20%,*"> <FRAME NAME="subtoc" SRC="subtoc1.html"> <FRAME NAME="text" SRC="sec1-1.html"> </FRAMESET> </FRAMESET> </HTML>
This setup could be used to display a large document comprised of several sections and sub-sections. A frame that runs along the top of the window displays a short table of contents with links to each of the sections. Another frame that runs along the left of the window displays a table of contents for the current section, with links to each of the sub-sections, and the remainder of the screen displays the actual text. Neat, huh? Well, it is, until you get to the problem of what the links point to. If I click on the link for Section 2 in the top frame, I want the left frame to change to the table of contents for Section 2 and the main frame to show the first sub-section of Section 2. But you can't do this because you can only link to one document that will appear in one frame. This, once again, is a problem.
URL: https://www.webreference.com/html/tutorial15/3.html
Produced by Stephanos Piperoglou
Created: May 28, 1998
Revised: February 25, 1999