The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsAdopts a download into the manager.
Optionaldownload: AdoptDownloadDictParameters for the download to adopt. @available: CertifiedApps
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Retrieves the list of current downloads.
Removes a download from the manager.
The download to remove.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
Manages file downloads.
Note
NavigatorProperty: "mozDownloadManager"
Note
JSImplementation: "@mozilla.org/downloads/manager;1"
Note
Pref: "dom.mozDownloads.enabled"
Note
Permissions: "downloads"