windows.remove()

Removes (closes) a window, and all the tabs inside it.

Syntax

browser.windows.remove(
  windowId,        // integer
  function() {...} // optional function
)

Parameters

windowId
integer.
callbackOptional
function.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic supportNo

Examples

Acknowledgements

This API is based on Chromium's chrome.windows API. This documentation is derived from windows.json in the Chromium code.

Document Tags and Contributors

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