Function addEventListener
- add
Event <K>(type, listener, options?): voidListener Type Parameters
- K extends keyof WindowEventMap
Parameters
- type: K
- listener: ((this: Window, ev: WindowEventMap[K]) => any)
- (this, ev): any
Parameters
- this: Window
- ev: WindowEventMap[K]
Returns any
Optional
options: boolean | AddEventListenerOptions
Returns void
- add
Event (type, listener, options?): voidListener Parameters
- type: string
- listener: EventListenerOrEventListenerObject
Optional
options: boolean | AddEventListenerOptions
Returns void