Help Center

Local Navigation

Object: HTMLObjectElement

Availability

BlackBerry® Device Software version 4.6 or later

Extends

HTMLElement

The HTMLObjectElement object represents an <object> element in an HTML document.

The <object> element specifies an embedded object.

HTMLObjectElement properties

Property name

Type

Description

Status

Support level

Availability

align

DOMString

Specifies the horizontal or vertical alignment of the object.

writable

DOM 2 HTML

4.6 or later

archive

DOMString

Specifies a whitespace-separated list of URLs for archives which contain resources for the object.

writable

DOM 2 HTML

4.6 or later

border

DOMString

Specifies the width of the border around the object.

writable

DOM 2 HTML

4.6 or later

code

DOMString

Specifies the location of the class ID for the object.

writable

DOM 2 HTML

4.6 or later

codeBase

DOMString

Specifies the root location for the object’s code and data.

writable

DOM 2 HTML

4.6 or later

codeType

DOMString

Specifies the MIME type for the data downloaded for use by the object.

writable

DOM 2 HTML

4.6 or later

contentDocument

Document

Returns the document this object contains, if there is one. If the object contains no document, this property returns null.

read only

DOM 2 HTML

4.6 or later

data

DOMString

Specifies the URI that defines the location of the object’s data.

writable

DOM 2 HTML

4.6 or later

declare

boolean

When true, indicates that this object should be declared, but not instantiated.

writable

DOM 2 HTML

4.6 or later

form

HTMLFormElement

Returns the form that contains this object. If the object is not contained by a form, this property returns null.

writable

DOM 2 HTML

4.6 or later

height

DOMString

Specifies the height of the object.

writable

DOM 2 HTML

4.6 or later

hspace

int

Specifies the amount of whitespace, in pixels, inserted to the left and right of the object.

writable

DOM 2 HTML

4.6 or later

name

DOMString

Specifies the name for the object.

writable

DOM 2 HTML

4.6 or later

standby

DOMString

Specifies text to display while the object is loading.

writable

DOM 2 HTML

4.6 or later

tabIndex

int

Specifies the object's position in the tabbing order.

writable

DOM 2 HTML

4.6 or later

type

DOMString

Specifies the MIME type for the data specified by the data property.

writable

DOM 2 HTML

4.6 or later

useMap

DOMString

Specifies the location of a client side map used with the object, if the object is an image.

writable

DOM 2 HTML

4.6 or later

vspace

int

Specifies the amount of white space, in pixels, inserted above and below the object.

writable

DOM 2 HTML

4.6 or later

width

DOMString

Specifies the width of the object.

writable

DOM 2 HTML

4.6 or later


Was this information helpful? Send us your comments.