HTML element: <frame>
Availability
|
Partial support as of BlackBerry®
Device Software version 4.2.
Full support as of BlackBerry Device Software
version 4.6
|
The <frame> element identifies the content to be displayed in a single pane of a frameset.
Differences between HTML, XHTML, and XHTML-MP
In HTML, the <frame> element is not closed. To conform to XHTML, you must properly close the <frame> element.
XHMTL-MP does not support frames.
Considerations
Although the <frame> element is supported by the browser, this is mainly to support content designed for desktop browsers. You should not include frames in content designed for the BlackBerry device.
Attributes
Attribute
|
Value(s)
|
Description
|
Supported in
|
frameborder
|
1
0
|
This attribute specifies whether or not a border is displayed around the frame. The default value is 1, which indicates that a border will be displayed.
|
4.6 or later
|
longdesc
|
URI
|
This attribute specifies a URL where the content of the frame is described.
|
4.6 or later
|
marginheight
|
pixels
|
This attribute defines the top and bottom margins for the frame. The value must be greater than 0.
|
4.6 or later
|
marginwidth
|
pixels
|
This attribute defines the left and right margins of the frames. The value must be greater than 0.
|
4.6 or later
|
name
|
text
|
The attribute defines a unique name, used to identify the frame as the target of links or in scripts.
|
4.2 or later
|
noresize
|
—
|
When set, this attribute indicates that the user cannot resize the frame.
|
4.6 or later
|
scrolling
|
yes
no
auto
|
This attribute defines the scrolling behavior. The default value is auto, which indicates that scrolling is provided when necessary.
|
4.6 or later
|
src
|
URI
|
This attribute defines the URL of the source content for the frame.
|
4.2 or later
|
Common attributes
|
—
|
The <frame> element supports the following common attributes:
|
4.6 or later
|
Index
Was this information helpful? Send us your comments.