It depends on how you define a particular tab. There are many functions for getting a tab, which in turn returns a Tab object . This object has a url attribute.
Take, for example, the currently selected tab. You will get a pen with chrome.tabs.getSelected . Where null is the WindowID and the current window is used by default.
chrome.tabs.getSelected(null, function(tab) { alert(tab.url); })
For more information, I suggest you check out the API documentation .
Reiner gerecke
source share