Hi,
I'm trying to list all the tabs that are open (result will be
displayed on an options page), but I can't get it to work.
This is the code
chrome.tabs.getAllInWindow(undefined, function(tabs) {
for(var l = 0; l < tabs.length; l++) {
var tab = tabs[l];
document.write(tab.url+'<br>');
}
});
Thanks to anyone who can tell me what I'm doing wrong.
--
You received this message because you are subscribed to the Google Groups
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/chromium-extensions?hl=en.