Answer the question
In order to leave comments, you need to log in
How to get active window link in chrome extension?
I can not find out the url of the active window of the browser.
tried like this:
chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
alert(tab.url);
});
the console outputs the following:
Uncaught TypeError: Cannot read property 'onUpdated' of undefined
what to do??
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question