# frameset

Defines a set of window-like frames within a parent window.

## Platform Support

IE | Netscape | Mozilla | Opera | Safari
--- | --- | --- | --- | ---
2.0+ | 2.0+ | 1.0+ | 4.0+ | 1.0+

## Example

This example shows a frameset containing two frames--a navMenu.htm page and a home page (index.htm). The frameset is split into columns:

    <frameset cols="20%, 80%" >
    	<frame src="navMenu.htm" name="navMenu" />
    	<frame src="index.htm" name="home" />
    </frameset>

## Remarks

Define your individual <frame> </frame> elements within a set of <frameset> </frameset>, tags.

## Attribute Detail

Attribute | IE | Netscape | Mozilla | Opera | Safari
--- | --- | --- | --- | --- | ---
border [border-width]. Example values: 0 (borderless), 1, 2, etc. Width (in pixels) of the border around the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
bordercolor [color | "transparent"]. Example values: Red, #FF0000 (#RRGGBB color code for "red"), etc. Specifies the color of the border of the element. Specify either a color name or RGB color code. | 4.0+ | no | no | no | no
class [class-name]. Example values: header-class, list-element, etc. CSS class assigned to the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
cols [number] Number of characters wide that the element should be. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
frameborder Specifies whether the frame has a border. | 2.0+ | 2.0+ | 1.0+ | 4.0+ | 1.0+
framespacing [number-of-pixels] Number of pixels between frames. | 4.0+ | no | no | no | no
hidefocus Specifies whether the element shows a visual cue when it has focus. | 5.5+ | no | no | no | no
id [element-id] Unique identifier for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
lang [language-code]. Example values: "en" (English), "fr" (French), "es" (Spanish), etc. Language code for the content of the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
language Script language for the element. | 3.0+ | 2.0+ | 1.0+ | no | 1.0+
longdesc [url] URL that contains a long description of the contents of the element. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
rows [number-of-rows] Number of rows in the element. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
style [style-name] Inline style for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
tabindex [number] Position of the element in the tabbing order for the document. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
title [text-description] Short text description for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
unselectable Specifies whether or not the element is unselectable. | 5.5+ | no | no | no | no

## Event Detail

Event | IE | Netscape | Mozilla | Opera | Safari
--- | --- | --- | --- | --- | ---
onactivate Fires when the element becomes active. | 4.0+ | no | no | no | no
onafterprint Fires immediately after a user prints or print previews a document. | 4.0+ | no | no | no | no
onbeforedeactivate Fires immediately before the element stops being the active element. | 4.0+ | no | no | no | no
onbeforeprint Fires immediately before a user prints or print previews a document. | 4.0+ | no | no | no | no
onbeforeunload Fires immediately before a document is unloaded. | 4.0+ | no | no | no | no
onblur Fires when the element loses focus. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
oncontrolselect Fires immediately before the element is selected. | 4.0+ | no | no | no | no
ondeactivate Fires when the active element becomes inactive. | 4.0+ | no | no | no | no
onfocus Fires when the element receives focus. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
onload Fires when the content of the element finishes loading. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
onmove Fires when the element moves. | 4.0+ | no | no | no | no
onmoveend Fires when the element stops moving. | 4.0+ | no | no | no | no
onmovestart Fires immediately before the element moves. | 4.0+ | no | no | no | no
onresizeend Fires when the element is finished being resized. | 4.0+ | no | no | no | no
onresizestart Fires immediately before a user resizes the element. | 4.0+ | no | no | no | no
onunload Fires when the content of the element finishes unloading. | 4.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+

## Availability

W3C HTML 4.01

text_html aptana_docs