HTMLAudioElement
Provides access to the properties of elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface.
interface HTMLAudioElement extends HTMLMediaElement {
addEventListener<K extends keyof HTMLMediaElementEventMap>(
type: K,
listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;removeEventListener<K extends keyof HTMLMediaElementEventMap>(
type: K,
listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var HTMLAudioElement: {
prototype: HTMLAudioElement;
new (): HTMLAudioElement;
};§Extends
§Methods
§
addEventListener<K extends keyof HTMLMediaElementEventMap>(
[src]type: K,
listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof HTMLMediaElementEventMap>(
[src]type: K,
listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void