Name
<FRAME> — NN 2 IE 3 HTML 4
Synopsis
<FRAME>
End Tag: Forbidden
The
FRAME
element
defines properties of an individual window space that is some
fractional portion of the entire browser window. A
FRAME element must be defined within the context
of a FRAMESET element. It is the
FRAMESET that defines the row and column
arrangement of a related group of frames.
A browser treats a frame as a separate browser window within the
browser application’s window. As such, each frame window can
load its own content, independent of other frames. Although no
attributes of the FRAME element are required,
assigning a value to the NAME attribute is highly
recommended if you have forms or links whose returned or destination
document is to be displayed in a different frame. Scripting among
multiple frames also benefits greatly from names assigned to frames
because it makes references to those frames (and their contents) more
easily understandable to someone reading the script code.
Example
<FRAMESET COLS="150,*">
<FRAME NAME="navbar" SRC="nav.html">
<FRAME NAME="main" SRC="page1.html">
</FRAMESET>Object Model Reference
- NN
[window.]frameName
[window.]frames[i]
- IE
[window.]frameName
[window.]frames[i]
[window.]document.all.frameID
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