The FRAMESET tag contains a set of FRAME tags, which each define a frame in the main window.
Each frame has a distinct URL that determines the content displayed by the frame.
You can specify whether or not a frame has a border, whether or not it has margins, whether or not the user can resize it dynamically, and whether or not it is scrollable.
The URL tag is required.
specifies the color of the frame's borders. See Color Units for information about color values. Navigator 3.0.
Because frames share borders, Navigator must resolve any border color conflicts. See the section "FRAMESET" for details of the conflict resolution.
determines whether or not the frame has visible borders. Navigator 3.0.
When neither a FRAME nor a FRAMESET tag governing that FRAME has set the FRAMEBORDER attribute, the default setting is YES.
specifies a margin, in pixels, between the top and bottom edges of the frame and the frame contents.
specifies a margin, in pixels, between the left and right edges of the frame and the frame contents.
specifies the name of the frame. The value of the NAME attribute must begin with an alphanumeric character.
specifies that users cannot resize the frame. If a frame adjacent to an edge is not resizable, the entire edge is not resizable, and consequently other frames adjacent to that edge are not resizable.
specifies whether scrollbars are available on a frame:
specifies the URL for the document to be displayed in the frame. The URL cannot include an anchor name; for example
FRAME SRC="doc2.html#colors"is invalid. If you do not specify the SRC attribute, the frame is displayed with no content.
(set of frames)
The FRAMESET tag defines a set of frames that appear in a web browser window. The FRAMESET tag contains one or more FRAME tags that each describe a frame.
The only place the FRAMESET tag can be used is in a frame definition document, which is an HTML document that contains the FRAMESET and FRAME tags that describe the framesets and frames that make up a Navigator window. An HTML document that contains a FRAMESET tag cannot contain a BODY tag.
A frameset can specify that its frames are laid out in rows or columns. If you want your frameset to have rows and columns, rather than just rows or columns, you can use FRAMESET tags nested inside FRAMESET tags. For example, you could define a frameset that has two columns, where the first column contains a frameset that has two rows and the second column contains a frameset that has 4 rows.
You can specify the border thickness for all frames in a top-level frameset. You can also specify whether or not all frames in a set display their border by default and what color the border uses. Individual frames in the set can override the default to specify whether or not they display their border, and what color their border uses.
You can specify actions to occur when the window displaying the frameset gets or loses focus, and you can specify actions to occur when the frameset is loaded or unloaded.
For example, the file frameset.htm opens a web page that has three frames. If you click a link in the left frame, both the other frames update. You can open the file frametoc.htm and view its source to see the code for the links that update multiple frames.
You can use the NOFRAMES tag inside a FRAMESET tag to provides alternative content for browsers that cannot display frames.
You must supply at least one of the COLS or ROWS attribues.
specifies a comma-separated list of values giving the width of each frame in the frameset. If one of the values is missing, the browser sizes the corresponding frame to fit the space available. The browser may approximate some values to make the total width of the columns equal to the width of the window. The value of each item in the columnWidthList can be one of the following:
- Width of a frame in pixels.
- Width of a frame as a percentage of its parent frame or window.
- An asterisk (*), which means "as much space as possible," which is the space left over after space has been allocated to all columns that specify their width as pixel value or a percentage value . The total available left-over space is divided equally between all columns that use an asterisk.
specifies a comma-separated list of values giving the height of each frame in the frameset. If one of the values is missing, the corresponding frame is sized to fit the space available. The browser may approximate some values to make the total height of the rows equal to the height of the window. Each item in rowHeightList can be one of the following:
- Height of a frame in pixels.
- Height of a frame as a percentage of the parent frame or window.
- An asterisk (*) which means "as much space as possible," which is the space left over after space has been allocated to all rows that specify their height as pixel value or a percentage value . The total available left-over space is divided equally between all rows that use an asterisk.
specifies the thickness of frame borders for all frames in an outermost frameset. A setting of 0 causes all frames in the frameset to have no border between them. A setting of 3 causes a border of 3 pixels. If no BORDER tag is present, the default is 5 pixels. The BORDER tag can be used only on an outermost FRAMESET tag. Navigator 3.0
specifies the color of a frame's borders. See Color Units for information about color values. Navigator 3.0
Because frame borders are shared, Navigator must resolve any border color conflicts.
If there is a conflict for two colors of equal priority both set on the same edge, the behavior is undefined.
- Any BORDERCOLOR attribute appearing in the outermost FRAMESET has the lowest priority.
- This attribute is overridden by any attribute used in a nested FRAMESET tag.
- Finally, any BORDERCOLOR attribute in the current FRAME tag overrides all previous FRAMESET tag settings.
determines how frame borders are displayed. Navigator 3.0
<HEAD> <TITLE>Simple Frame Set Example</TITLE></HEAD>
<FRAMESET COLS="20%,80%" BORDER=10>
<FRAME SRC="simpltoc.htm" NAME="exampletoc">
<FRAME SRC="forms.htm" NAME="examplecontent">
The two frames appear as columns because COLS is specified within the FRAMESET tag. The left frame uses 30% of the available space, and the right frame uses the remaining 70% of the space. By default, the frames in this example have scrollbars and are resizable, because no values are specified for the SCROLLING and NORESIZE attributes. The file simplset.htm shows this example in action in a separate window. The content of the left hand frame is provided by the file simpltoc.htm. View its source to see the HTML that in the left hand frame.
<NOFRAMES>You must use a browser that can display frames
to see this page. </NOFRAMES>
Example 2: Nested Frames
The following example creates a frameset that contains a nested frameset. The outermost frameset has two columns. The second column contains a nested frameset that has two rows.
<HTML><HEAD><TITLE>Frame Set Example</TITLE></HEAD>
The file frameset.htm contains this frameset. The left hand column shows a set of links. Clicking one of the links causes both frames in the right column to change their content. To see the source code that enables a link to update multiple frames in one go, open the page frametoc.htm and view its source.
<NOFRAME>You must use a browser that can display frames
to see this page.</NOFRAME>
<FRAME SRC="frametoc.htm" NAME="noname">
<FRAME SRC="frtoc1.htm" NAME="toptoc">
<FRAME SRC="frstart.htm" NAME="outer">
(alternative text for frames)
The NOFRAMES tag specifies content that is displayed by browsers that do not know how to display frames. Browsers that can display frames ignore all text in the NOFRAMES tags unless a file called by a frame tag is missing or unreachable by the browser.
Place the NOFRAMES tag within the FRAMESET tag.
See Frameset Example 1. Simple Frameset With Two Frames.
Last Updated: 01/26/98 21:33:44