Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLObjectElement

Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of element, representing external resources.

interface HTMLObjectElement extends HTMLElement {
align: string;
archive: string;
border: string;
code: string;
codeBase: string;
codeType: string;
readonly contentDocument: Document | null;
readonly contentWindow: WindowProxy | null;
data: string;
declare: boolean;
readonly form: HTMLFormElement | null;
height: string;
hspace: number;
name: string;
standby: string;
type: string;
useMap: string;
readonly validationMessage: string;
readonly validity: ValidityState;
vspace: number;
width: string;
readonly willValidate: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
checkValidity(): boolean;
getSVGDocument(): Document | null;
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
reportValidity(): boolean;
setCustomValidity(error: string): void;
}
var HTMLObjectElement: {
prototype: HTMLObjectElement;
}
;

§Extends

§Properties

§
align: string
[src]
§
archive: string
[src]

Sets or retrieves a character string that can be used to implement your own archive functionality for the object.

§
border: string
[src]
§
code: string
[src]

Sets or retrieves the URL of the file containing the compiled Java class.

§
codeBase: string
[src]

Sets or retrieves the URL of the component.

§
codeType: string
[src]

Sets or retrieves the Internet media type for the code associated with the object.

§
readonly contentDocument: Document | null
[src]

Retrieves the document object of the page or frame.

§
readonly contentWindow: WindowProxy | null
[src]
§
data: string
[src]

Sets or retrieves the URL that references the data of the object.

§
declare: boolean
[src]
§
readonly form: HTMLFormElement | null
[src]

Retrieves a reference to the form that the object is embedded in.

§
height: string
[src]

Sets or retrieves the height of the object.

§
hspace: number
[src]
§
name: string
[src]

Sets or retrieves the name of the object.

§
standby: string
[src]

Sets or retrieves a message to be displayed while an object is loading.

§
type: string
[src]

Sets or retrieves the MIME type of the object.

§
useMap: string
[src]

Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.

§
readonly validationMessage: string
[src]

Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.

§
readonly validity: ValidityState
[src]

Returns a ValidityState object that represents the validity states of an element.

§
vspace: number
[src]
§
width: string
[src]

Sets or retrieves the width of the object.

§
readonly willValidate: boolean
[src]

Returns whether an element will successfully validate based on forms validation rules and constraints.

§Methods

§
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
checkValidity(): boolean
[src]

Returns whether a form will validate when it is submitted, without having to submit it.

§
getSVGDocument(): Document | null
[src]
§
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
reportValidity(): boolean
[src]
§
setCustomValidity(error: string): void
[src]

Sets a custom error message that is displayed when a form is submitted.

@param error

Sets a custom error message that is displayed when a form is submitted.