tabs.getSelected()
Warnung:
Diese Methode ist veraltet. Verwenden Sie stattdessen tabs.query({active: true})
.
Ruft den Tab ab, der im angegebenen Fenster ausgewählt ist.
Dies ist eine asynchrone Funktion, die ein Promise
zurückgibt.
Syntax
js
let gettingSelected = browser.tabs.getSelected(
windowId // optional integer
)
Parameter
windowId
Optional-
integer
. Standardmäßig das aktuelle Fenster.
Rückgabewert
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
getSelected |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Hinweis:
Diese API basiert auf der chrome.tabs
API von Chromium. Diese Dokumentation ist abgeleitet von tabs.json
im Chromium-Code.