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

BORDERCOLOR

FRAMEBORDER

LANGUAGE

NAME

STYLE

CLASS

HEIGHT

LONGDESC

NORESIZE

TITLE

DATAFLD

ID

MARGINHEIGHT

SCROLLING

WIDTH

DATASRC

LANG

MARGINWIDTH

SRC

 

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.