IFRAMEIFRAME*
*Contents  *Index  *Topic Contents
*Previous Topic: I
*Next Topic: IMG

IFRAME

Description

Used to create in-line floating frames.

Syntax

<IFRAME
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP
BORDER=pixels
BORDERCOLOR=color
CLASS=classname
DATAFLD=colname
DATASRC=#ID
FRAMEBORDER=NO | YES | 0 | 1
FRAMESPACING=pixels
HEIGHT=n
HSPACE=pixels
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
MARGINHEIGHT=pixels
MARGINWIDTH=pixels
NAME=window_name | _blank | _parent | _self | _top
NORESIZE=NORESIZE | RESIZE
SCROLLING=AUTO | NO | YES
SRC=url
STYLE=css1-properties
TITLE=text
VSPACE=pixels
WIDTH=n
>

ParameterDescription
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP Specifies the alignment for the control-like element.
BORDER=pixels Specifies the thickness of a border to be drawn around the element. The default is 0.
BORDERCOLOR=color Sets border color and must be used with the BORDER attribute, except for frames. For a complete list of colors, look at the Internet Explorer color table.
CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag.
DATAFLD=colname The column name from the data source object that supplies the bound data.
DATASRC=#ID Indicates the ID of the data source object that supplies the data that is bound to this element.
FRAMEBORDER=NO | YES | 0 | 1 Specifies whether or not to display a 3-D border around the frame. "YES" or 1 causes a border to be displayed (default). "NO" or 0 displays no border.
FRAMESPACING=pixels Creates additional space between the frames.
HEIGHT=n Along with WIDTH, specifies the size at which the element is drawn. This attribute may be initially set in pixels or percentages.
HSPACE=pixels Along with VSPACE, specifies margins for the element.
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
LANG=language Specifies which language to use in ISO standard language abbreviation form.
LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript.
VBS, VBSCRIPT The scripting language is written in VBScript.
MARGINHEIGHT=pixels Sets the amount of top and bottom margin should be set before displaying the text in a frame.
MARGINWIDTH=pixels Sets the amount of left and right margin should be set before displaying the text in a frame.
NAME=window_name | _blank | _parent | _self | _top Specifies the window or frame to target the contents at. If no frame or window exists that matches the specified target, a new window is opened for the specified link. If no target is specified, the default is "_self" for a link within the same site or "_top" if the site is external. Special target values are listed below:
_blank Specifies to load the link into a new unnamed window.
_parent Specifies to load the link into the immediate parent of the document the link is in.
_self Specifies to load the link into the same window the link was clicked in.
_top Specifies to load the link into the full body of the current window.
NORESIZE When this attribute is supplied, the frame is not resizable by the user. The default behavior allows the user to resize the frame.
SCROLLING=AUTO | NO | YES Specifies that the frame can be scrolled. If set to "AUTO," the browser determines whether scrollbars are necessary (default).
SRC=url Specifies a URL for the associated file to be displayed in the frame.
STYLE=css1-properties Specifies an in-line style sheet for the tag.
TITLE=text Used to provide advisory information.
VSPACE=pixels Along with HSPACE, specifies margins for the element.
WIDTH=n Along with HEIGHT, sets the initial size of the element. This attribute may be initially set in pixels or percentages.

Remarks

This element is a block element.

Both the start and end tags are required.

Example

<IFRAME FRAMEBORDER=0 SCROLLING=NO SRC="sample.htm"></IFRAME>

Scripting Object

IFRAME


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.