I\'m creating my first Chrome extension and I need some help. I I think everything is working except the fact that I can\'t get the current URL of the tab.
var m
chrome.tabs.getCurrent(function(tab){ alert(tab.url); });
OR if you're in a content script,
alert(document.location.href);