downloads.open()

Open the downloaded file.

Syntax

browser.downloads.open(
  downloadId,      // integer
  function() {...} // optional function
)

Parameters

downloadId
integer.
callbackOptional
function.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?48.0Yes33
Firefox
Basic support48.0

Examples

Acknowledgements

This API is based on Chromium's chrome.downloads API.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,