Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLObjectElement Constructor() : HTMLObjectElement
Creates an instance of the HTMLObjectElement.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ | ||
HTMLObjectElement() : HTMLObjectElementCreates an instance of the HTMLObjectElement. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
data
: String
Specifies the address of the resource.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
type
: String
Specifies the type of the resource.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
name
: String
Specifies the name of the nested browsing context.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
useMap
: String
Indicates whether the object has an associated image map.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
form
: HTMLFormElement
Used to associate the object with its form owner.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
width
: String
Specifies the width attribute.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
height
: String
Specifies the height attribute.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
contentDocument
: Document
Returns the Document object of the active document of the object element's nested browsing context, if it has one; otherwise,
it must return null.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
contentWindow
: WindowProxy
Return the WindowProxy object of the object element's nested browsing context, if it has one; otherwise, it must return null.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
willValidate
: Boolean
Specifies whether the element will be validated when the form is submitted.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
validity
: ValidityState
Specifies the validity of the element.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
|
validationMessage
: String
Specifies a suitably localized message that the user agent would show the user if this were the only form control with a validity
constraint problem.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ |
|
|||||||
Inherited Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the
Element nodes with the specified classNames. |
Show Details | 1.9+ | 5.0+ | 3.1+ | 9.51+ | no | no | |||||
|
Parameters
Returns
|
||||||||||||
Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||
|---|---|---|---|---|---|---|---|---|---|---|
|
checkValidity() : Boolean
The user agent must instanceally validate the constraints of the form element, and return true if the constraint validation
return a positive result, and false if it returned a negative result.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ | |||
|
Returns
|
||||||||||
|
setCustomValidity(String error) :
void
Sets the custom validity error message to the value of the given message argument.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 4.0+ | |||
|
Parameters
|
||||||||||
References
Availability
JavaScript 1.2|WhatWG