HTMLObjectElement:The object Element
The object element is represented by the HTMLObjectElement object. It implements the properties shown in the following table.
Name | Description | Returns |
---|---|---|
data | the data attribute | string |
type | the type attribute | string |
form | Returns the form that this element is associated with | HTMLFormElement |
name | the name attribute | string |
useMap | the usemap attribute | string |
width | the width attribute | string |
height | the height attribute | string |
contentDocument | Returns the document object | Document |
contentWindow | Returns the window object | Window |
willValidate | Returns true if the element will be validated when the form is submitted; returns false otherwise | boolean |
validationMessage | Returns the error message that would be shown to the user if input validation was applied | string |
checkValidity() | Performs input validation on the element | boolean |
setCustomValidity(<msg>) | Sets a custom validation message | void |
labels | Returns the label elements associated with this element | HTMLLabelElement[] |