Methods
addEventListener
- addEventListener(eventName: string, handler: ((...args: any[]) => void)): void
-
Parameters
-
eventName: string
-
handler: ((...args: any[]) => void)
-
- (...args: any[]): void
-
Returns void
Returns void
removeEventListener
- removeEventListener(eventName: string, toDetach: ((...args: any[]) => void)): void
-
Parameters
-
eventName: string
-
toDetach: ((...args: any[]) => void)
-
- (...args: any[]): void
-
Returns void
Returns void
XMLHttpRequestEventTarget is the interface that describes the event handlers shared on XMLHttpRequest and XMLHttpRequestUpload.
See
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget