Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Object Object

HTML DOM Object Object


Object Object

The Object object represents an HTML .

element is used to embed 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 it element:

var x = document.getElementById("myObject");

Try it

Creating the Object Object

You can use the document.createElement() method to create element:

var x = document.createElement("OBJECT");

Try it

Object Object Properties

property Description
align Not supported in HTML5. Use style.cssFloat as a replacement.
Sets or returns the alignment of the object relative to the surrounding text.
archive Not supported in HTML5.
Sets or returns a string used to implement the object's archive function.
border Not supported in HTML5. Use style.border as a replacement.
Sets or returns the border around the object.
code Not supported in HTML5.
Sets or returns the URL of the file that contains 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 as a replacement.
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 shown while loading the object.
type Sets or returns the content type of the data downloaded via the data attribute.
useMap  
vspace Not supported in HTML5. Use style.margin as a replacement.
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 the standard property and Events.


Related Articles

HTML Reference Manual:HTML tag