Hello, I have made a browser-action extension, and I would open several tabs with a link in the popup page, but I've strange results.
Here is my function:
As these, no tab will open... but if I uncomment the last line, all tabs will open.Code:var openAll = function (id){ window.close(); chrome.bookmarks.getChildren(id, function(children){ for (var i in children) { var url = children[i].url; chrome.tabs.create({'url': url}); } }); //chrome.tabs.create({'url': 'http://www.google.com'},function(){}); }
I'd be very grateful if you have a solution. Thanks.


LinkBack URL
About LinkBacks



Reply With Quote