<FRAMESET>
The FRAMESET element is used to define a collection of frames for a web page.
A frameset allows you to divide a web page into multiple windows which can be
scrolled independently of one another.
Client-side code such as Javascript and the TARGET attribute allow frames to
"talk" to each other. One of the most common uses of frames is to keep a
navigation element at a set position on the screen while the user scrolls
through a long section of content.
Attributes
Attribute |
Description |
ID |
Identifies this tag to reference in script (program code) |
CLASS |
Define the class used to render this element (defined by a style sheet) |
TITLE |
A title that is associated with the element (displayed as a tooltip in Internet Explorer) |
NAME |
The name attribute identifies the frameset for reference through client-side scripting or by the TARGET attribute |
ROWS |
Comma-seperated list of sizes indicating the height of each frame in pixels. By specifying this attribute, you are indicating the FRAME elements should be laid out vertically. You may include a wildcard height (* ) in this list which will use up all remaining space |
COLS |
Comma-seperated list of sizes indicating the width of each frame in pixels. By specifying this attribute, you are indicating the FRAME elements should be laid out horizontally. You may include a wildcard height (* ) in this list which will use up all remaining space |
|
Example
<FRAMESET rows="120,*">
<FRAME NAME="TOPFRAME" SRC="/topframe.php" SCROLLING="no" MARGINWIDTH="0">
<FRAME NAME="TOPFRAME" SRC="/mainframe.php" SCROLLING="auto" MARGINWIDTH="10">
</FRAMESET>
Compatibility
HTML 4.01
|