class js.html.ObjectElement extends Element

Available on js

DOM Object objects expose the HTMLObjectElement (or HTML 4 HTMLObjectElement) interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of Object element, representing external resources.

Documentation for this class was provided by MDN.

Instance Fields

var align:String

Alignment of the object relative to its context.

Obsolete in HTML5.

var archive:String

Reflects the

archive  HTML attribute, containing a list of archives for resources for this object. Obsolete in HTML5.

var border:String

Reflects the

border  HTML attribute, specifying the width of a border around the object. Obsolete in HTML5.

var code:String

The name of an applet class file, containing either the applet's subclass, or the path to get to the class, including the class file itself.

Obsolete in HTML5.

var codeBase:String

Reflects the

codebase  HTML attribute, specifying the base path to use to resolve relative URIs. Obsolete in HTML5.

var codeType:String

Reflects the

codetype  HTML attribute, specifying the content type of the data. Obsolete in HTML5.

var contentDocument:Document

The active document of the object element's nested browsing context, if any; otherwise null.

var data:String

Reflects the

data HTML attribute, specifying the address of a resource's data.

var declare:Bool

Reflects the

declare HTML attribute, indicating that this is a declaration, not an instantiation, of the object. Obsolete in HTML5.

var form:FormElement

The object element's form owner, or null if there isn't one.

var height:String

Reflects the {{htmlattrxref("height", "object)}} HTML attribute, specifying the displayed height of the resource in CSS pixels.

var hspace:Int

Horizontal space in pixels around the control.

Obsolete in HTML5.

var name:String

Reflects the

name  HTML attribute, specifying the name of the object ( HTML 4, or of a browsing context ( HTML5.

var standby:String

Reflects the

standby HTML attribute, specifying a message to display while the object loads. Obsolete in HTML5.

var type:String

Reflects the {{htmlattrxref("type", "object)}} HTML attribute, specifying the MIME type of the resource.

var useMap:String

Reflects the {{htmlattrxref("usemap", "object)}} HTML attribute, specifying a {{HTMLElement("map")}} element to use.

var validationMessage:String

A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.

var validity:ValidityState

The validity states that this element is in.

var vspace:Int

Horizontal space in pixels around the control.

Obsolete in HTML5.

var width:String

Reflects the

width  HTML attribute, specifying the displayed width of the resource in CSS pixels.

var willValidate:Bool

Indicates whether the element is a candidate for constraint validation. Always false for object objects.

function checkValidity():Bool

function setCustomValidity(error:String):Void