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
If you are using content script you can use
document.location.href
document.location is Object and can provide set of useful chunks in the URL
document.location.host returns domain name ex: "http://www.google.com/"document.location.path returns the part after the domain namedocument.location.hash returns whatever after # symbol in the url