object (HTML4 & HTML5)

Defines an object embedded in the document.

Properties & Events

KeyDescriptionAvailability
alignDefines the alignment of the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
archiveURL or list of URLs that need to be preloaded for the element.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0
borderWidth (in pixels) of the border around the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
classCSS class assigned to the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
classidThe URI of the object's implementation.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 4.0
codeURL of the Java class file for the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera ??
codebaseURL for the code base for the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera ??
codetypeThe content type of the data specified by classid.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 4.0
dataSpecifies the URL for data used by the element.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
declareIf present, declares the object associated with the element, but does not instantiate it.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 4.0
dirDirection of the element text.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
formThe form element, if any, that the object element is associated with (its form owner).
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 4.0
heightHeight of the element (in pixels).
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
hspaceNumber of pixels of space to the left and right of the element (i.e. horizontal margin).
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
idUnique identifier for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
langLanguage code for the content of the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
nameUnique name identifier for the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
standbyText content to dislay while the object associated with the element loads.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0
styleInline style for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
tabindexPosition of the element in the tabbing order for the document.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
titleShort text description for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
typeSpecifies the MIME type for the element.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
usemapSpecifies a URL to use for an image map or object map.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
vspaceNumber of pixels of space above and below the element (i.e. vertical margin).
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 7.0
widthWidth of the element (pixels or percentage).
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
onblurFires when the element loses focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onclickFires when the element is clicked.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
ondblclickFires when the element is double-clicked.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onfocusFires when the element receives focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onkeydownFires when a user presses down on a key while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onkeypressFires when a user presses a key or holds down the key while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onkeyupFires when a user releases a key while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmousedownFires when a user clicks down on the mouse button while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmousemoveFires when the mouse moves while the pointer over the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmouseoutFires when the mouse pointer moves off of the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmouseoverFires when the mouse pointer moves over the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmouseupFires when the user releases the mouse button while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0

Examples having uses of: 'object'