IFRAME | NN n/a IE 4 DOM 1 | ||
The IFRAME object reflects the IFRAME element. Be aware that, in Internet Explorer 4, a number of properties defined for this object have no effect on the object nor any default value. | |||
HTML Equivalent<IFRAME> | |||
Object Model Reference
|
align | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
Defines how the element is aligned relative to surrounding text content. Most values set the vertical relationship between the element and surrounding text. For example, to align the bottom of the element with the baseline of the surrounding text, the align property value would be baseline. An element can be "floated" along the left or right margin to let surrounding text wrap around the element. | |||
Exampledocument.all.myIframe.align = "absmiddle" | |||
Value Any of the following alignment constant values (as a string): absbottom | absmiddle | baseline | bottom | right | left | none | texttop | top. | |||
|
dataFld | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Used with IE 4 data binding to associate a remote data source column name with the value of the src property. A DATASRC attribute must also be set for the element. Setting both the dataFld and dataSrc properties to empty strings breaks the binding between element and data source. | |||
Exampledocument.all.myIframe.dataFld = "frameURL" | |||
Value Case-sensitive identifier of the data source column. | |||
|
dataSrc | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Used with IE 4 data binding to specify the name of the remote ODBC data source (such as an Oracle or SQL Server database) to be associated with the element. Setting both the dataFld and dataSrc properties to empty strings breaks the binding between element and data source. | |||
Exampledocument.all.myIframe.dataSrc = "#DBSRC3" | |||
Value Case-sensitive identifier of the data source. | |||
|
frameBorder | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
This property should control whether the frame displays a border. In practice, the property has no effect on the visual appearance of an inline frame. | |||
Value Internet Explorer 4 accepts the string values of 1 (on) and 0 (off) as well as yes and no. | |||
|
frameSpacing | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
The amount of spacing in pixels between frames within a frameset. This property has no effect on an inline frame in Internet Explorer 4. | |||
Value Integer. | |||
|
hspace, vspace | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
The pixel measure of horizontal and vertical margins surrounding an inline frame. The hspace property affects the left and right edges of the element equally; the vspace property affects the top and bottom edges of the element equally. These margins are not the same as margins set by style sheets, but they have the same visual effect. | |||
Exampledocument.logo.hspace = 5 document.logo.vspace = 8 | |||
Value Integer of pixel count. | |||
|
marginHeight, marginWidth | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Should control the number of pixels between the inner edge of a frame and the content rendered inside the frame, but in practice these properties have no effect on the rendered content in Internet Explorer 4. | |||
Value Positive integer value or zero. | |||
|
name | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
The identifier associated with a frame for use as the value assigned to TARGET attributes or as script references to the frame. The value is usually assigned via the NAME attribute, but it can be modified by script if necessary. | |||
Value Case-sensitive identifier that follows the rules of identifier naming: it may contain no whitespace, cannot begin with a numeral, and should avoid punctuation except for the underscore character. | |||
|
noResize | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Whether the frame can be resized by the user. In Internet Explorer 4, an inline frame cannot be resized, so this property is superfluous. | |||
Value Boolean value: true | false. | |||
|
scrolling | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
The treatment of scrollbars for a frame when the content exceeds the visible area of the frame. You can force a frame to display scrollbars at all times or never. Or you can let the browser determine the need for scrolling. In IE 4 for the Macintosh, only the vertical scrollbar is turned off when this property is set to no. | |||
Exampledocument.all.mainFrame.scrolling = "yes" | |||
Value One of three constants (as a string): auto | no | yes. | |||
|
src | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
URL of the external content file loaded into the current element. To change the content, assign a new URL to the property. | |||
Exampledocument.all.myIframe.src = "section2.html" | |||
Value Complete or relative URL as a string. | |||
|
tabIndex | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
A number that indicates the sequence of this element within the tabbing order of all focusable elements in the document. In practice, the tabIndex property setting has no effect on user interaction with an inline frame. | |||
Value Integer. | |||
|