Name
<IFRAME> — NN n/a IE 3 HTML 4
Synopsis
<IFRAME>...</IFRAME>
End Tag: Required
An IFRAME
element creates an inline frame
within the natural flow of a document’s content. The frame is a
rectangular space into which you may load any other HTML document (or
use scripts to dynamically write content to the space). If you assign
a value to the NAME attribute of an
IFRAME element, you may supply that name as the
value of a TARGET attribute of
A, FORM, or other element that
lets you define a target for a destination or returned document.
Although an IFRAME element’s rectangular
space begins immediately following the content that comes before it
(including in a line of text), all content following the end tag
starts on the next line following the frame rectangle. Text leading
up to the IFRAME element can be aligned in the
same ways that text can be aligned around an IMG
or OBJECT element.
Content between the start and end tags is ignored by browsers that
support the IFRAME element. All others display
such content as inline HTML content (as a way to let users know what
they’re missing and perhaps provide a link to related
information). The Navigator 4 element that comes closest to the
functionality and behavior of the IFRAME element
is the ILAYER element.
Example
<IFRAME SRC="quotes.html" WIDTH=150 HEIGHT=90> <A HREF="quotes.html" TARGET="new" STYLE="color:darkred"> Click here to see the latest quotes </A> </IFRAME>
Object Model Reference
- IE
[window.]document.frameName
Attributes
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access