Defines an inline frame (i.e. a frame embedded in a document).
Browser/User Agent Support
| IE | Netscape | Mozilla | Opera | Safari | 3.0+ | 3.0+ | 1.0+ | 5.0+ | 1.0+ |
|---|
Example
This example displays an inline frame containing a job opportunities page:
<iframe src="jobs.htm" height="350px" width="350px" scrolling="yes" >
Sorry, your browser does not support inline frames. ;/iframe>
Remarks
If a browser cannot render an inline frame, use a div to mimic the behavior. Browsers that cannot render inline frames will display the text enclosed in the <iframe></iframe> tag set instead.
Attribute Detail
| Attribute | IE | Netscape | Mozilla | Opera | Safari |
|---|---|---|---|---|---|
|
Defines the alignment of the element.
|
2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
Specifies whether the background of the element may be transparent.
|
5.5+ | no | no | no | no |
|
Specifies whether the content of the element is considered an HTA application.
|
5.0+ | no | no | no | no |
|
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 |
|
CSS class assigned to the element.
|
2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
For a databound element, specifies the field supplying the data.
|
4.0+ | no | no | no | no |
|
For a databound element, specifies the id of the data source.
|
4.0+ | no | no | no | no |
|
Specifies whether the frame has a border.
|
2.0+ | 2.0+ | 1.0+ | 4.0+ | 1.0+ |
|
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+ | no | no | no | no |
|
Number of pixels of space to the left and right of the element (i.e. horizontal margin).
|
2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
Unique identifier for the element.
|
2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
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+ | no | 1.0+ |
|
URL that contains a long description of the contents of the element.
|
4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+ |
|
Top and bottom margins (in pixels) for the document.
|
4.0+ | 4.0+ | 1.0+ | 7.0+ | 1.0+ |
|
Left and right margins (in pixels) for the document.
|
4.0+ | 4.0+ | 1.0+ | 7.0+ | 1.0+ |
|
Unique name identifier for the element.
|
2.0+ | 1.0+ | 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+ |
|
URL for the source for the element.
|
2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
Inline style for the element.
|
2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
Position of the element in the tabbing order for the document.
|
2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
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+ | no | no | no | no |
|
Number of pixels of space above and below the element (i.e. vertical margin).
|
2.0+ | 1.0+ | 1.0+ | 7.0+ | 1.0+ |
|
Width of the element (pixels or percentage).
|
2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+ |
Event Detail
| Event | IE | Netscape | Mozilla | Opera | Safari |
|---|---|---|---|---|---|
|
Fires when the element becomes active.
|
4.0+ | no | no | no | no |
|
Fires when the data from a datasource is successfully updated for a databound object.
|
4.0+ | no | no | no | no |
|
Fires immediately before the element stops being the active element.
|
4.0+ | no | no | no | no |
|
Fires immediately before the data from a datasource is updated for a databound object.
|
4.0+ | no | no | no | no |
|
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+ | no | no | no | no |
|
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+ | no | no | no | no |
|
Fires when an error occurs while updating the datasource of a databound object.
|
4.0+ | no | no | no | no |
|
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+ | no | no | no | no |
|
Fires when the element stops moving.
|
4.0+ | no | no | no | no |
|
Fires immediately before the element moves.
|
4.0+ | no | no | no | no |
|
Fires when the ready state of the element changes.
|
4.0+ | no | no | no | no |
|
Fires when the element is finished being resized.
|
4.0+ | no | no | no | no |
|
Fires immediately before a user resizes the element.
|
4.0+ | no | no | no | no |
|
Fires when a time-related error occurs.
|
4.0+ | no | no | no | no |

