Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/downloads/drag/index.md
6581 views
------{{AddonSidebar()}}
The drag() function of the {{WebExtAPIRef("downloads")}} API initiates dragging the downloaded file to another application.
Syntax
This API is also available as browser.downloads.drag().
Parameters
downloadId: An
integerrepresenting theidof the {{WebExtAPIRef("downloads.DownloadItem", "DownloadItem")}} in question.
Browser compatibility
{{Compat}}
{{WebExtExamples}}
Note: This API is based on Chromium's
chrome.downloadsAPI.