You can get the current URL with this code:
browser.tabs.getSelected(null, function(tab) {
document.getElementById("activetaburl").innerHTML = tab.url;
});
Topic:
App & System Services
SubTopic:
General
Tags: