HTMLOutputElement
Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of elements.
interface HTMLOutputElement extends HTMLElement {
defaultValue: string;
readonly form: HTMLFormElement | null;
readonly htmlFor: DOMTokenList;
readonly labels: NodeListOf<HTMLLabelElement>;
name: string;
readonly type: string;
readonly validationMessage: string;
readonly validity: ValidityState;
value: string;
readonly willValidate: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;checkValidity(): boolean;
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;reportValidity(): boolean;
setCustomValidity(error: string): void;
}var HTMLOutputElement: {
prototype: HTMLOutputElement;
new (): HTMLOutputElement;
};§Extends
§Properties
§
readonly form: HTMLFormElement | null
[src]§
readonly htmlFor: DOMTokenList
[src]§
readonly labels: NodeListOf<HTMLLabelElement>
[src]§
readonly validity: ValidityState
[src]§Methods
§
addEventListener<K extends keyof HTMLElementEventMap>(
[src]type: K,
listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof HTMLElementEventMap>(
[src]type: K,
listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void