Methods
off
- off(type?: string, listener?: (this: Window, e: Event) => boolean | void): this
-
Parameters
-
Optional type: string
-
Optional listener: (this: Window, e: Event) => boolean | void
-
- (this: Window, e: Event): boolean | void
-
Parameters
Returns boolean | void
Returns this
on
- on(type: string, listener: (this: Window, e: Event) => boolean | void, useCapture?: boolean): this
- on(type: string, listener: (this: Window, e: Event) => boolean | void, options?: { capture?: boolean; once?: boolean; passive?: boolean }): this
-
Parameters
-
type: string
-
listener: (this: Window, e: Event) => boolean | void
-
- (this: Window, e: Event): boolean | void
-
Parameters
Returns boolean | void
-
Optional useCapture: boolean
Returns this
-
Parameters
-
type: string
-
listener: (this: Window, e: Event) => boolean | void
-
- (this: Window, e: Event): boolean | void
-
Parameters
Returns boolean | void
-
Optional options: { capture?: boolean; once?: boolean; passive?: boolean }
-
Optional capture?: boolean
-
Optional once?: boolean
-
Optional passive?: boolean
Returns this
Add methods for window object