You are here: Reference > HTML > tags > frame

frame element

Browser support:
Specifies a nameable window region.
The frame element allows authors to insert more than one HTML document into a browser window. It must be within a frameSet element. Using frames can prevent search engines from finding the contents within pages, so it is not recommended to use the frameSet and frame elements (because of the indexing mechanism of search robots).
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
JavaScript page for this element: frame.

Possible members:

Attributes
Events
Styles
ALLOWTRANSPARENCY
9
Sets whether a frame element (frame or iframe) can be transparent.
borderColor
Sets the color of the border.
class
Sets the style class or classes that belong to the element.
contentEditable
3
Sets whether the contents of the object are editable.
dataFld
Specifies which field of a given data source should be bound to the specified object.
dataFormatAs
Specifies how data is to be rendered.
dataSrc
Sets the identifier of the data source that is bound to the element.
frameBorder
Sets whether the frame is surrounded by a 3-D border.
id
Sets a unique identifier for the object.
language
Sets the scripting language for the current element. Use it only for the script element.
longDesc
Specifies the URI (Uniform Resource Identifier) of the long description of a frame, iframe or img element.
marginHeight
Sets the top and bottom margins for a frame element.
marginWidth
Sets the left and right margins for a frame element.
name
Sets the initial name of the contained window.
NORESIZE
Specifies whether a frame window is resizable.
scrolling
Sets whether a frame has scrollbars.
security
Applies the user's Restricted Sites Internet Explorer security zone settings to an individual frame or iframe.
src
Sets the location of an associated file for an object.
style
Sets an inline style associated with an element.
tabIndex
Specifies the tabbing order for keyboard navigation using the TAB key.
title
Specifies a tooltip for an element.
unSelectable
Sets whether the selection process can start in an element's content.

Example HTML code 1:

This example illustrates the use of the frame element:
Code
topFrame.htm
mainFrame.htm
<frameset rows="110,*" cols="*" border="10px">
    <frame src="topFrame.htm" name="topFrame" scrolling="No"/>
    <frame src="mainFrame.htm" name="mainFrame"/>
</frameset>
Did you find this example helpful? yes no

Related pages:

External links:

User Contributed Comments

Post Content

Post Content