OBJECT XHTML Element

Send Feedback

The OBJECT element 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 for All DOM 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, events and methods.

Attributes

Attribute Value PPC SP Description
ACCESSKEY 0...9, #, * Yes Yes Gives access or focus to an active HTML element by using a keypad number.
Note   For Pocket PCs, supported only for devices running Windows Mobile 2003 software or later
ALIGN   Yes Yes Specifies ActiveX alignment for the control.
  absbottom Yes Yes This attribute is equivalent to the CSS:
vertical-align: text-bottom;
  absmiddle Yes Yes This attribute is equivalent to the CSS:
vertical-align: middle;
  baseline Yes Yes This attribute is equivalent to the CSS:
vertical-align: baseline;
  bottom Yes Yes This attribute is equivalent to the CSS:
vertical-align: bottom;
  center Yes Yes  
  middle Yes Yes This attribute is equivalent to the CSS:
vertical-align: middle;
  texttop Yes Yes This attribute is equivalent to the CSS:
vertical-align: text-top;
  top Yes Yes This attribute is equivalent to the CSS:
vertical-align: top;
CLASS   Yes Yes  
CLASSID URL Yes Yes 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...# Yes Yes Specifies the height of the ActiveX control in pixels

This attribute is equivalent to the CSS:

height: {n};
HSPACE 0...# Yes Yes Sets the horizontal margin for the control in pixels.
ID   Yes Yes Specifies the string identifying the object. Can be used so that the OBJECT can be referenced from script. This attribute is mandatory for the control to render.
NAME   Yes Yes Sets or retrieves the name of the object.
Note   Supported only for devices running Windows Mobile 2003 software or later.
STYLE   Yes Yes 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   Yes Yes Sets the order in which elements are tabbed to.
Note   Supported only for devices running Windows Mobile 2003 software or later.
VSPACE 0...# Yes Yes Sets the vertical margin for the ActiveX control in pixels.
WIDTH 0...# Yes Yes Specifies the width of the ActiveX control in pixels

This attribute is equivalent to the CSS:

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

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later

See Also

XHTML Elements

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.