Skip to main content

addEventListener

method Window.addEventListener
Jump to headingWindow.addEventListener<K extends keyof WindowEventMap>(
type: K,
listener: (
this: Window,
) => any
,
options?: boolean | AddEventListenerOptions,
): void

Type Parameters Jump to heading

Parameters Jump to heading

Jump to headinglistener: (
this: Window,
) => any
optional
Jump to headingoptions: boolean | AddEventListenerOptions

Return Type Jump to heading

void
Jump to headingWindow.addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
Back to top