Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML DOM Object object


May 06, 2021 JavaScript with HTML DOM Reference book


Table of contents


HTML DOM Object object


Object object

The Object object represents an HTML-lt;object.gt;

Elements are used to include objects in web pages, such as images, audio, video, Java applet, ActiveX, PDF, Flash, and so on.

Access objects

You can use getElementById() to access the elements:

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

Create an Object object

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

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

Object object properties

Attributes describe
align It is not supported in HTML5.use style.cssFloat Replace.
Setting or return an object relative to the surrounding text alignment.
archive It is not supported in HTML5.
Set or returns a string for implementing the object archive function.
border It is not supported in HTML5.use style.border Replace.
Set or return the border around the object.
code It is not supported in HTML5.
Set or return the URL of the file that contains the compiled Java class.
codeBase It is not supported in HTML5.
Set or return the URL of the component.
codeType It is not supported in HTML5.
data
declare It is not supported in HTML5.
form Returns a reference to the parent form of the object.
height Set or return to the height of the object.
hspace It is not supported in HTML5.use style.margin Replace.
Set or return to the horizontal outer margin of the object.
name Set or return the name of the object.
standby It is not supported in HTML5.
Set or return the message when the object is loaded.
type Set or returns the content type of the data downloaded through the DATA property.
useMap
vspace It is not supported in HTML5.use style.margin Replace.
Set or return the vertical outer margin of the object.
width Set or return to the width of the object.

Standard properties and events

Object objects also support standard properties and events.


Related articles

HTML Reference Manual: HTML slt;object.gt; Tags