Help Center

Local Navigation

HTML element: <iframe>

Availability

Full support as of BlackBerry® Device Software version 4.6.

The <iframe> element defines an inline frame.

Differences between HTML, XHTML, and XHTML-MP

XHTML-MP does not support inline frames.

Considerations

While the <iframe> element is supported by the browser, this is mainly to support content designed for desktop browsers. You should not include inline frames in content designed for the BlackBerry device.

Attributes

Attribute

Value(s)

Description

Availability

align

bottom

left

middle

right

top

This attribute specifies how the <iframe> element is aligned according to the surrounding text.

4.6 or later

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 is displayed.

4.6 or later

height

length

This attribute specifies the height of the frame.

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 specifies the top and bottom margins for the frame. The value must be greater than 0.

4.6 or later

marginwidth

pixels

This attribute specifies the left and right margins of the frames. The value must be greater than 0.

4.6 or later

name

text

The attribute specifies a unique name, used to identify the frame as the target of links or in scripts.

4.6 or later

scrolling

yes

no

auto

This attribute specifies the scrolling behavior. The default value is auto, which indicates that scrolling is provided when necessary.

4.6 or later

src

URI

This attribute specifies the URL of the source content for the frame.

4.6 or later

width

length

This attribute specifies the width of the frame.

4.6 or later

Common attributes

The <iframe> element supports the following common attributes:

  • class
  • id
  • style
  • title

4.6 or later

Index


Was this information helpful? Send us your comments.