DocumentAndElementEventHandlers
interface DocumentAndElementEventHandlers {
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(
type: K,
listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(
type: K,
listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;§Properties
§
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null
[src]§
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null
[src]§
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null
[src]§Methods
§
addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(
[src]type: K,
listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(
[src]type: K,
listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void