2024年3月20日 — The ID of the tab. Tab IDs are unique within a browser session. Under some circumstances a tab may not be assigned an ID; for example, when ...
to Chromium-extensions. If you want to get current tab id in Background page, then use: chrome.tabs.getSelected(null, function(tab //DO WHATEVER YOU WANT ...
2019年1月9日 — Ah. You can pass the id via url parameter like url: 'popup.html#' + tab.id and then extract it in your popup.js. Or you can send a message, but ...