[English] [Svenska]
[Home page] [My links] [My products]
[Good frames]
[Create BAD] [Create GOOD] [Convert]

More detailed description

Create BAD frames (example of bad frames)

Bad frames are created by only creating one FRAMESET document, and then show all sub pages in a named sub window (frame). The FRAMESET document can look like this:
  <TITLE>Bad example</TITLE>
  <frameset cols="30%,*">
    <frame src="menu.htm">
    <frame src="page1.htm" name="p">
  </frameset>
The last frame has got a name (p) that can be used to instruct a link to show the linked page in this window. The menu will never change and therefor it isn't necessary to give this frame a name!
Normally this document is named index.html to be used as the default document in the directory.

The menu document (menu.htm) will look something like this:
  <BODY>
  <P><A HREF="page1.htm" TARGET="p">Page 1
  <P><A HREF="page2.htm" TARGET="p">Page 2
Notice TARGET="p" which instruct the link to show up in the named sub window p (see above).

One of the real pages (page1.htm) could look like this:
  <BODY>
  <H1>This is page 1</H1>
  <P><A HREF="page2.htm">Page 2
Page 1 has a link to page 2, and the interesting thing here is that no TARGET is needed, because the linked page is supposed to show up in the same frame as Page 1.

Exactly this code that is described above (more is not needed) with the mentioned names (index.html is however called frameset.htm to make it possible to view the files in the directory) can be looked at in this directory. The main document is frameset.htm.
 


General documentation about frames can be found at Netscape:
 

[English] [Svenska]
[Home page] [My links] [My products]
[Good frames]
[Create BAD] [Create GOOD] [Convert]

Has been viewed  times. Last update: 12/18/00 13:17:31. © Claes Löfqvist
Index, Frames on