Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The OBJECTelement inserts an ActiveX® control onto the page. This is a block element and requires a closing tag.

Note:
Internet Explorer Mobile cannot download controls. You are limited to using the pre-installed controls for the device.

Using this Element

There are some common properties and collections that apply to all the elements of the document object model, see Common Properties, Methods and Collections for the HTML Elements in Internet Explorer Mobile.

This element can be used within a web page with attributes.

This element can be used within scripts where it will have properties, eventsand methods.

Attributes

The following table shows items that Internet Explorer Mobile supports.

Attribute Value Description

ACCESSKEY

0…9, #, *

Gives access or focus to an active HTML element by using a keypad number.

Note:
Supported only on Pocket PC for Windows Mobile 2003 and later.

ALIGN

 

Specifies ActiveX alignment for the control.

 

absbottom

This attribute is equivalent to the CSS:

Copy Code
vertical-align: text-bottom;

 

absmiddle

This attribute is equivalent to the CSS:

Copy Code
vertical-align: middle;

 

baseline

This attribute is equivalent to the CSS:

Copy Code
vertical-align: baseline;

 

bottom

This attribute is equivalent to the CSS:

Copy Code
vertical-align: bottom;

 

center

 

 

middle

This attribute is equivalent to the CSS:

Copy Code
vertical-align: middle;

 

texttop

This attribute is equivalent to the CSS:

Copy Code
vertical-align: text-top;

 

top

This attribute is equivalent to the CSS:

Copy Code
vertical-align: top;

CLASS

 

 

CLASSID

URL

Specifies the control class identifier. The format is "clsid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX ". This attribute is mandatory for the control to render.

HEIGHT

0…#

Specifies the height of the ActiveX control in pixels

This attribute is equivalent to the CSS:

Copy Code
height: {n};

HSPACE

0…#

Sets the horizontal margin for the control in pixels.

ID

 

Specifies the string identifying the object. Can be used so that the OBJECTcan be referenced from script. This attribute is mandatory for the control to render.

NAME

 

Sets or retrieves the name of the object.

Note:
Supported only for devices running Windows Mobile 2003 software or later.

STYLE

 

Provides the definition of the CSS styles used for this element. Extent of support is border, margin, padding and other inline styles.

Note:
Supported only for devices running Windows Mobile 2003 software or later.

TABINDEX

 

Sets the order in which elements are tabbed to.

Note:
Supported only for devices running Windows Mobile 2003 software or later.

VSPACE

0…#

Sets the vertical margin for the ActiveX control in pixels.

WIDTH

0…#

Specifies the width of the ActiveX control in pixels

This attribute is equivalent to the CSS:

Copy Code
width: {n};

Scripting Properties

This element has no scripting properties.

Scripting Events

This element has no associated events.

Scripting Methods

This property has no associated methods.

Requirements

Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also