chrome.tabs.query actually returns an array of objects Tab , so you will need to refer to the tab within the array (even if it's only one Tab ):
$('#get-tab').click(function(){ chrome.tabs.query({"active" : true}, function(tab){ for (var i = 0; i < tab.length; i++) { alert(tab[i].url); $('#current-tab').append(tab[i].url); }; }); });
source share