Help Center

Local Navigation

Object: HTMLIFrameElement

Availability

BlackBerry® Device Software version 4.6 or later

Extends

HTMLElement

The HTMLIFrameElement object represents an <iframe> element in an HTML document.

The <iframe> element defines an inline frame.

HTMLIFrameElement properties

Property name

Type

Description

Status

Support level

Availability

align

DOMString

Specifies the horizontal alignment of the horizontal line on the page.

writable

DOM 2 HTML

4.6 or later

contentDocument

Document

Returns a reference to the Document object that the frame contains.

read only

DOM 2 HTML

4.6 or later

contentWindow

Window

Returns a reference to the Window object that contains the frame.

writable

Not part of any standard.

4.6 or later

frameBorder

DOMString

Specifies whether or not a separator is displayed around the frame.

writable

DOM 2 HTML

4.6 or later

height

DOMString

Specifies the height of the frame.

writable

DOM 2 HTML

4.6 or later

longDesc

DOMString

Specifies a URL where the content of the frame is described.

writable

DOM 2 HTML

4.6 or later

marginHeight

DOMString

Specifies the top and bottom margins for the frame. The value must be greater than 0.

writable

DOM 2 HTML

4.6 or later

marginWidth

DOMString

Specifies the left and right margins of the frames. The value must be greater than 0.

writable

DOM 2 HTML

4.6 or later

name

DOMString

Specifies a unique name for the frame.

writable

DOM 2 HTML

4.6 or later

scrolling

DOMString

Specifies the scrolling behavior.

writable

DOM 2 HTML

4.6 or later

src

DOMString

Specifies the URL of the source content for the frame.

writable

DOM 2 HTML

4.6 or later

width

DOMString

Specifies the width of the frame.

writable

DOM 2 HTML

4.6 or later


Was this information helpful? Send us your comments.