Help Center

Local Navigation

Object: HTMLFrameElement

Availability

BlackBerry® Device Software version 4.6 or later

Extends

HTMLElement

The HTMLFrameElement object represents a <frame> element in an HTML frameset.

The <frame> element identifies the content to be displayed in a single pane of a frameset.

HTMLFrameElement properties

Property name

Type

Description

Status

Support level

Availability

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.

read only

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

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

noResize

boolean

When true, indicates that the user cannot resize 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

Previous topic: HTMLFormElement methods

Was this information helpful? Send us your comments.