<OBJECT...>
     ACCESSKEY="Shortcut Key"
     ALIGN="left|right|top|texttop|middle|absmiddle|baseline|bottom|absbottom"
     BORDER="Pixels"
     CLASS="Style Sheet Class"
     CLASSID="GUID of Embedded Object"
     CODE="Implementation Code"
     CODEBASE="URL of Object Handler"
     DATA="Implementation Data"
     DATAFLD="Data Source Column Name"
     DATASRC="Data Source Identifier"
     HEIGHT="Pixels|Percentage"
     HSPACE="Pixels"
     ID="Unique Identifier"
     LANG="Language descriptor"
     LANGUAGE="Scripting Language descriptor"
     NAME="Element Identifier"
     STYLE="Style Sheet Setting"
     TABINDEX="Tab-order Index"
     TITLE="Title of element"
     TYPE="MIME type"
     VSPACE="Pixels"
     WIDTH="Pixels|Percentage"
     onClick="Script Function"
     onDblClick="Script Function"
     onDragStart="Script Function"
     onFilterChange="Script Function"
     onHelp="Script Function"
     onKeyDown="Script Function"
     onKeyPress="Script Function"
     onKeyUp="Script Function"
     onMouseDown="Script Function"
     onMouseMove="Script Function"
     onMouseOut="Script Function"
     onMouseOver="Script Function"
     onMouseUp="Script Function"
     onSelectStart="Script Function"
     onAfterUpdate="Script Function"
     onBeforeUpdate="Script Function"
     onBlur="Script Function"
     onDataAvailable="Script Function"
     onDataSetChanged="Script Function"
     onDataSetComplete="Script Function"
     onError="Script Function"
     onErrorUpdate="Script Function"
     onFocus="Script Function"
     onLoad="Script Function"
     onReadyStateChange="Script Function"
     onResize="Script Function"
     onRowEnter="Script Function"
     onRowExit="Script Function"
>
...
</OBJECT>

Description

Embeds an object within the document. <OBJECT> was first introduced by Internet Explorer to include ActiveX controls in a document, though has been extended to support embedding of almost all media types.

Attributes

Attribute Description
ACCESSKEY Specifies a key that can be used as a shortcut to access the element. Pressing 'Alt' and the key specified in the ACCESSKEY attribute is the same as clicking on the element.
ALIGN Specifies the alignment of the embedded object.
BORDER Sets the width of the embedded objects border.
CLASS Sets the style sheet class (specified in an in-line, linked or imported style sheet) to be applied to the element.
CLASSID Specifies the GUID (globally unique identifier) for the embedded object. Normally this would be inserted automatically by applications that handle the addition of such objects into HTML documents.
CODE Provides for the inclusion of code that may be required for the embedded object to function. Normally this would be inserted by applications that insert embedded objects into HTML documents.
CODEBASE Gives a URL that locates the embedded object. If the object is not currently installed on the viewers system, it will be retrieved from the URL given and installed.
DATA Specifies a persistent data stream to initialise the object's state.
DATAFLD Specifies the column name of the data (from the data source specified in the DATASRC attribute) to be used for populating the element. Data-binding on the <OBJECT> element is set for the embedded objects default property/value, so the data should be correct properties for the object.
DATASRC Specifies the ID attribute of an embedded data-source object (using the <OBJECT> element) that will be used as the data source for the elements data.
HEIGHT Specifies the height of the embedded object in either pixels, or a percentage of the browser window.
HSPACE Specifies an amount of horizontal white space (I.e. to the left and right) surrounding the embedded object.
ID Sets a unique identifier for the element, allowing it to be referenced within scripting functions, or to specify a style sheet setting, set using a #<style_class> class selector.
LANG Specifies the language (using an ISO country code derived classifier) that the element is using, for browsers that support document localisation.
LANGUAGE Sets the scripting language that any in-line scripting events are written in.
NAME Sets a unique identifier for the embedded object, which can be used to identify the object in scripting functions.
STYLE Sets in-line style sheet settings for the element, which will over-ride any set in a <STYLE> block, or externally linked to the document.
TABINDEX Specifies the tab index order of the embedded object within the document. I.e. an element with a TABINDEX="2" setting would receive the focus after an element with a TABINDEX="1" when the Tab key is pressed.
TITLE Specifies an informational title for the element. The contents of the TITLE attribute may be presented as a Tool-Tip by some browsers.
TYPE Specifies the MIME type of the embedded object, which assists the browser in determining whether it can support the particular object type or not.
VSPACE Specifies an amount of vertical white space (I.e. to the left and right) surrounding the embedded object.
WIDTH Specifies the width of the embedded object in pixels, or as a percentage of the browser window.

Scripting Events

Event Description
onClick Fired whenever the user clicks the element (or its contents) with the mouse
onDblClick Fired whenever the user double-clicks the element (or its contents) with the mouse (the double-click speed is dependant on the users system settings).
onDragStart Fired when the users initiaties dragging of the element (or it's contents)
onFilterChange Fired whenever a filter is applied to an element, or whenever the properties of an applied filter are changed.
onHelp Fired whenever the user presses 'F1' (for help) and the element has the users current focus.
onKeyDown Fired when the user presses a key (only when the key is actually pressed) when the element has the focus.
onKeyPress The onkeypress event is similar to the onkeydown event, except that it returns the UNICODE value of the key or keys being pressed when the event occurs.
onKeyUp The onkeyup event is fired when a previously pressed key is released while the referenced element has the focus.
onMouseDown The onmousedown event fires whenever the user presses a button on the mouse, with the event being initially fired for the element that has the focus when the mouse button is clicked, and bubbling up through the element objects until an onmousedown event handler is found.
onMouseMove The onmousemove event occurs whenever the users mouse moves over the element.
onMouseOut The onmouseout event fires when the users mouse leaves the area defined by the referenced element.
onMouseOver The onmouseover event fires when the users mouse enters the area defined by the referenced element.
onMouseUp The onmouseup event fires after a users mouse button has been pressed and released.
onSelectStart The onselectstart event is fired whenever the users starts to select some text that is the contents of the referenced element.
onAfterUpdate The onafterupdate event is fired after data is transferred from the element to the data provider and will only fire after the onbeforeupdate event has fired and was successful.
onBeforeUpdate onbeforeupdate fires when a data bound element loses the focus, or the current document is unloaded and will only fire if the value of the element is different to the original value that was present when the element received the users focus.
onBlur Fires when the element loses the users focus (i.e. the user clicks on a different element within the document).
onDataAvailable The ondataavailable event being fired indicates that more records for the referenced Data Source Object are available.
onDataSetChanged The ondatasetchanged event is fired when a new set of data is available and a recordset can be retrieved from that set of data, or when an existing set of data has been changed.
onDataSetComplete Fired when all the data in the referenced recordset is available.
onError Fired when an error occurs in attempting to locate or download the embedded object.
onErrorUpdate The onerrorupdate event fires when a data transfer error occurs, through some action by the user.
onFocus Fires whenever the element receives the focus, either by the user directly clicking on, or 'tab'bing to the element, or when the focus is applied through scripting.
onLoad Fires when the embedded object starts to download.
onReadyStateChange Fired when the elements readyState property changes value.
onResize Fired whenever the element is resized.
onRowEnter Fires on the data source control when the current record has been changed, so new data is available to populate the HTML display elements that are bound to the data source.
onRowExit Fires immediately before the data source changes the current record.


See 'HTML Reference|Media Embedding|<OBJECT>' for more information.