Easy Tutorial
❮ Dom Obj Search Met Canvas Transform ❯

HTML DOM Object Object


Object Object

The Object object represents an HTML <object> element.

The <object> element is used to include objects in a web page, such as images, audio, video, Java applets, ActiveX, PDF, Flash, etc.

Accessing the Object Object

You can use getElementById() to access the <object> element:

Creating the Object Object

You can use the document.createElement() method to create an <object> element:

Object Object Properties

Property Description
align Not supported in HTML5. Use style.cssFloat instead. Sets or returns the alignment of the object relative to the surrounding text.
archive Not supported in HTML5. Sets or returns a string for implementing object archiving.
border Not supported in HTML5. Use style.border instead. Sets or returns the border around the object.
code Not supported in HTML5. Sets or returns the URL of the file containing the compiled Java class.
codeBase Not supported in HTML5. Sets or returns the URL of the component.
codeType Not supported in HTML5.
data
declare Not supported in HTML5.
form Returns a reference to the parent form of the object.
height Sets or returns the height of the object.
hspace Not supported in HTML5. Use style.margin instead. Sets or returns the horizontal margin of the object.
name Sets or returns the name of the object.
standby Not supported in HTML5. Sets or returns the message during object loading.
type Sets or returns the content type of the data downloaded via the data attribute.
useMap
vspace Not supported in HTML5. Use style.margin instead. Sets or returns the vertical margin of the object.
width Sets or returns the width of the object.

Standard Properties and Events

The Object object also supports standard properties and events.


Related Articles

HTML Reference: HTML <object> Tag

❮ Dom Obj Search Met Canvas Transform ❯