FRAME TAG and ATTRIBUTES

<FRAME></FRAME>

This element defines a nameable window region, known as a frame that can independently display its own content.


ATTRIBUTES

BORDERCOLOR = "color name | #RRGGBB”
CLASS = "class name(s)"
FRAMEBORDER = "0 | 1”
MARGINHEIGHT = "pixels”
MARGINWIDTH = "pixels”
NAME = "Frame name”
NORESIZE
SCROLLING = "AUTO | NO | YES"
SRC = "URL of frame contents"
STYLE = "style information"

EVENTS

onreadystatechange


BORDERCOLOR  This attribute sets the color of the frame’s border using either a named color or a color specified in the hexadecimal #RRGGBB format.

CLASS  See Cascading Style Sheets (CSS) Information.

FRAMEBORDER  This attribute determines whether the frame is surrounded by an outlined three-dimensional border. The HTML specification prefers the use of 1 for the frame border on and 0 for off; most browsers also acknowledge the used of NO and YES.

MARGINHEIGHT  This attribute sets the height in pixels between the frame’s contents and its top and bottom borders.

MARGINWIDTH  This attribute sets the width in pixels between the frame’s contents and its left and right borders.

NAME  This attribute assigns the frame a name so that it can be the target destination of hyperlinks as well as be a possible candidate for manipulation via a script.

NORESIZE  This attribute overrides the default ability to resize frames and gives the frame a fixed size.

SCROLLING  This attribute determines if the frame has scroll bars. A YES value forces scroll bars, a NO value prohibits them, and an AUTO value lets the browser decide. When not specified, the default value of AUTO is used. Authors are recommended to leave the value as AUTO. If you turn off scrolling and the contents end up being too large for the frame (due to rendering differences, window size, etc.), the user will not be able to scroll to see the rest of the contents. If you turn scrolling on and the contents all fit in the frame, the scroll bars will needlessly consume screen space. With the AUTO value, scroll bars appear only when needed.

SRC  This attribute contains the URL of the contents to be displayed in the frame. If absent, nothing will be loaded in the frame.

STYLE  See Cascading Style Sheets (CSS) information.

Back to Top