object

Defines an object embedded in the document.

Platform Support

IENetscapeMozillaOperaSafari
3.0+4.0+1.0+4.0+1.0+

Example

This example displays an object named "myDemo":


<object classid="java:myDemo.class" standby="Loading..." height="350" width="350"> 
	<param name="loop" value="2" /> 
	Sorry, if this text is displayed, your browser does not support Java.
</object> 

Remarks

Use <object></object> instead of the <applet></applet> tag.

Attribute Detail

AttributeIENetscapeMozillaOperaSafari
accesskey
[key].
Hot-key shortcut for the element.
5.5+nonono1.0+
 
Defines the alignment of the element.
2.0+1.0+1.0+4.0+1.0+
 
archive
[url, url, ...]
URL or list of URLs that need to be preloaded for the element.
3.0+4.0+1.0+4.0+1.0+
 
border
[border-width]. Example values: 0 (borderless), 1, 2, etc.
Width (in pixels) of the border around the element.
2.0+1.0+1.0+4.0+1.0+
 
class
[class-name]. Example values: header-class, list-element, etc.
CSS class assigned to the element.
2.0+1.0+1.0+4.0+1.0+
 
code
[url]
URL of the Java class file for the element.
2.0+2.0+1.0+no1.0+
 
URL for the code base for the element.
2.0+2.0+1.0+no1.0+
 
data
[url]
Specifies the URL for data used by the element.
4.0+4.0+1.0+7.0+1.0+
 
datafld
[field-name]
For a databound element, specifies the field supplying the data.
4.0+nononono
 
datasrc
[name/id-of-data-source]
For a databound element, specifies the id of the data source.
4.0+nononono
 
If present, declares the object associated with the element, but does not instantiate it.
4.0+3.0+1.0+4.0+1.0+
 
Direction of the element text.
2.0+1.0+1.0+4.0+1.0+
 
height
[number-of-pixels]
Height of the element (in pixels).
2.0+1.0+1.0+4.0+1.0+
 
Specifies whether the element shows a visual cue when it has focus.
5.5+nononono
 
hspace
[number-of-pixels]
Number of pixels of space to the left and right of the element (i.e. horizontal margin).
2.0+1.0+1.0+4.0+1.0+
 
id
[element-id]
Unique identifier for the element.
2.0+1.0+1.0+4.0+1.0+
 
lang
[language-code]. Example values: "en" (English), "fr" (French), "es" (Spanish), etc.
Language code for the content of the element.
2.0+1.0+1.0+4.0+1.0+
 
name
[element-name]
Unique name identifier for the element.
2.0+1.0+1.0+4.0+1.0+
 
standby
[text]
Text content to dislay while the object associated with the element loads.
3.0+4.0+1.0+4.0+1.0+
 
style
[style-name]
Inline style for the element.
2.0+1.0+1.0+4.0+1.0+
 
tabindex
[number]
Position of the element in the tabbing order for the document.
2.0+1.0+1.0+4.0+1.0+
 
title
[text-description]
Short text description for the element.
2.0+1.0+1.0+4.0+1.0+
 
type (object)
[MIME-type]
Specifies the MIME type for the element.
4.0+1.0+7.0+1.0+
 
Specifies whether or not the element is unselectable.
5.5+nononono
 
usemap
[url]
Specifies a URL to use for an image map or object map.
2.0+1.0+1.0+4.0+1.0+
 
vspace
[number-of-pixels]
Number of pixels of space above and below the element (i.e. vertical margin).
2.0+1.0+1.0+7.0+1.0+
 
width
[number-of-pixels | percentage]. Example values: 200px, 15%, etc.
Width of the element (pixels or percentage).
2.0+1.1+1.0+4.0+1.0+
 

Event Detail

EventIENetscapeMozillaOperaSafari
Fires when the element becomes active.
4.0+nononono
 
Fires immediately before the element becomes active.
4.0+nononono
 
Fires immediately before the element stops being the active element.
4.0+nononono
 
Fires immediately before the element receives focus prior to being edited.
4.0+nononono
 
Fires when the element loses focus.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the data from the datasource changes.
4.0+nononono
 
Fires when the element is clicked.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the element is right-clicked and the context menu opens.
4.0+nonono1.0+
 
Fires immediately before the element is selected.
4.0+nononono
 
Fires when the element is cut to the clipboard.
4.0+nonono1.0+
 
Fires when the element is double-clicked.
2.0+1.0+1.0+4.0+1.0+
 
Fires when data becomes available from an asyncrhonous data source.
4.0+nononono
 
Fires when data in a dataset changes.
4.0+nononono
 
Fires when a dataset finishes loading.
4.0+nononono
 
Fires when the active element becomes inactive.
4.0+nononono
 
Fires when the element is dragged.
4.0+nonono1.0+
 
Fires when the element is released from being dragged.
4.0+nonono1.0+
 
Fires when the element has another object dragged onto it that can be dropped on the element.
4.0+nonono1.0+
 
Fires when an element has an object dragged out of it that could be dropped onto the element.
4.0+nonono1.0+
 
Fires when an element has an object dragged over it that could be dropped onto the element.
4.0+nonono1.0+
 
Fires immediately before an element is dragged.
4.0+nonono1.0+
 
Fires when an object is dropped onto the element.
4.0+nonono1.0+
 
Fires when an error occurs with the object associated with the element.
4.0+nonono1.0+
 
Fires when an error occurs while updating the datasource of a databound object.
4.0+nononono
 
Fires when the CSS Filter of an element changes or finishes transitioning.
4.0+nononono
 
Fires when the element receives focus.
2.0+1.0+1.0+4.0+1.0+
 
Fires when a user presses down on a key while the element has focus.
2.0+1.0+1.0+4.0+1.0+
 
Fires when a user presses a key or holds down the key while the element has focus.
2.0+1.0+1.0+4.0+1.0+
 
Fires when a user releases a key while the element has focus.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the element loses mouse capture.
4.0+nononono
 
Fires when a user clicks down on the mouse button while the element has focus.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the mouse pointer enters the element.
4.0+nononono
 
Fires when the mouse pointer leaves the element.
4.0+nononono
 
Fires when the mouse moves while the pointer over the element.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the mouse pointer moves off of the element.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the mouse pointer moves over the element.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the user releases the mouse button while the element has focus.
2.0+1.0+1.0+4.0+1.0+
 
Fires when the user rotates the mouse wheel while the element has focus.
4.0+nononono
 
Fires when the element moves.
4.0+nononono
 
Fires when the element stops moving.
4.0+nononono
 
Fires immediately before the element moves.
4.0+nononono
 
Fires when the clipboard contents are pasted onto the element.
4.0+nonono1.0+
 
Fires when one of the properties of the element changes.
4.0+nononono
 
Fires when the ready state of the element changes.
4.0+nononono
 
Fires immediately before an element is about to be resized.
4.0+nonono1.0+
 
Fires when the element is finished being resized.
4.0+nononono
 
Fires immediately before a user resizes the element.
4.0+nononono
 
Fires if the data values for the row change in the datasource.
4.0+nononono
 
Fires immediately before the data values for the row change in the datasource.
4.0+nononono
 
Fires immediately before rows are deleted from the dataset.
4.0+nononono
 
Fires immediately after rows are inserted into the dataset.
4.0+nononono
 
Fires when a user scrolls the element.
4.0+nonono1.0+
 
Fires immediately before the element is selected.
4.0+nonono1.0+
 

Availability

W3C HTML 4.01

text_html aptana_docs