A frame can be named with the following format:

<FRAME src="frame_page_URL" name="frame_name">

 

Once a frame is named, it can be targeted with a hyperlink. This is accomplished with the target attribute of the <A> anchor tag (see Hyperlinks and URLs).

<A herf="page_URL" target="frame_name">Link Text</A>

The following table shows certain special target options:

Target Options
Description
_blank
Load the linked page in a new browser window.
_self
Load the linked page in the current frame window.
_top
Load the linked page into the entire browser window.
_parent
Load the linked page in the current frames' parent, which is generally the frame window immediately preceding the current frame in the <FRAMESET> definition.

 

The following table shows more attributes related to the <FRAME> tag:

Attribute
Description
marginwidth
Left and right margins of the frame (in pixels).
marginheight
Top and bottom margins of the frame (in pixels).
scrolling
Whether to display scrollbar for the frame.
Accept values of yes, no, or auto.
frameborder
Whether to display dividers between frames.
Accept values of 1 (i.e., yes), or 0 (i.e., no)
noresize
Does not allow user to resize the frame.