frame

Defines a window-like frame (as a child of a frameset).

Platform Support

IENetscapeMozillaOperaSafari
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

AttributeIENetscapeMozillaOperaSafari
Specifies whether the background of the element may be transparent.
5.5+nononono
 
Specifies whether the content of the element is considered an HTA application.
5.0+nononono
 
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+nononono
 
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+
 
datafld
[field-name]
For a databound element, specifies the field supplying the data.
4.0+nononono
 
datasrc
[name/id-of-data-source]
For a databound element, specifies the id of the data source.
4.0+nononono
 
Specifies whether the frame has a border.
2.0+2.0+1.0+4.0+1.0+
 
height
[number-of-pixels]
Height of the element (in pixels).
2.0+1.0+1.0+4.0+1.0+
 
Specifies whether the element shows a visual cue when it has focus.
5.5+nononono
 
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+
 
Script language for the element.
3.0+2.0+1.0+no1.0+
 
URL that contains a long description of the contents of the element.
4.0+1.1+1.0+4.0+1.0+
 
marginheight
[number-of-pixels]
Top and bottom margins (in pixels) for the document.
4.0+4.0+1.0+7.0+1.0+
 
marginwidth
[number-of-pixels]
Left and right margins (in pixels) for the document.
4.0+4.0+1.0+7.0+1.0+
 
name
[element-name]
Unique name identifier for the element.
2.0+1.0+1.0+4.0+1.0+
 
If present, specifies that the element cannot be resized.
4.0+1.1+1.0+4.0+1.0+
 
Specifies whether or not the element has scroll bars.
2.0+2.0+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+
 
Specifies whether or not the element is unselectable.
5.5+nononono
 
width
[number-of-pixels | percentage]. Example values: 200px, 15%, etc.
Width of the element (pixels or percentage).
2.0+1.1+1.0+4.0+1.0+
 

Event Detail

EventIENetscapeMozillaOperaSafari
Fires when the element becomes active.
4.0+nononono
 
Fires when the data from a datasource is successfully updated for a databound object.
4.0+nononono
 
Fires immediately before the element stops being the active element.
4.0+nononono
 
Fires immediately before the data from a datasource is updated for a databound object.
4.0+nononono
 
Fires when the element loses focus.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the element is clicked.
2.0+1.0+1.0+4.0+1.0+
 
Fires immediately before the element is selected.
4.0+nononono
 
Fires when the element is double-clicked.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the active element becomes inactive.
4.0+nononono
 
Fires when an error occurs while updating the datasource of a databound object.
4.0+nononono
 
Fires when the element receives focus.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the content of the element finishes loading.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the element moves.
4.0+nononono
 
Fires when the element stops moving.
4.0+nononono
 
Fires immediately before the element moves.
4.0+nononono
 
Fires immediately before an element is about to be resized.
4.0+nonono1.0+
 
Fires when the element is finished being resized.
4.0+nononono
 
Fires immediately before a user resizes the element.
4.0+nononono
 
Fires immediately before the element is selected.
4.0+nonono1.0+
 

Availability

W3C HTML 4.01

text_html aptana_docs