HTML DOM Object Object
Object Object
The Object object represents the HTML <object> element.
Accessing an Object Object
You can access the <object> element using getElementById():
var x = document.getElementById("my object");
Creating an Object Object
You can create an <object> element using the document.createElement() method:
var x = document.createElement("OBJECT");
Object Properties
Attributes | Description |
---|---|
align |
Not supported in HTML5.Please use style.cssFloat. Set or return the alignment of the object relative to the surrounding text. |
archive |
Not supported in HTML5. Set or return a string value that can be used to implement your own object archiving feature. |
border |
Not supported in HTML5.Please use style.border. Set or return the border around the object. |
code |
Not supported in HTML5. Set or return the URL of the file containing compiled Java classes. |
codeBase |
Not supported in HTML5. Set or return the URL of the component. |
codeType | Not supported in HTML5. |
data | Set or return the URL of the resource to be used by the object. |
declare | Not supported in HTML5. |
form | Return a reference to the object's parent form. |
height | Set or return the height of the object. |
hspace |
Not supported in HTML5.Please use style.margin. Set or return the horizontal margin of the object. |
name | Set or return the name of the object. |
standby |
Not supported in HTML5. Set or return the message when loading the object. |
type | Set or return the content type of the data downloaded through the data attribute. |
useMap | Set or return the name of the client-side image map to be used with the object. |
vspace |
Not supported in HTML5.Please use style.margin. Set or return the vertical margin of the object. |
width | Set or return the width of the object. |
Standard attributes and events
The Object object supports both standardsAttributesandEvents.
Related Pages
HTML Reference Manual:HTML <object> Tag