showing results for - "chrome extension communication between popup and content script"
Nais
04 Jan 2018
1chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
2    chrome.tabs.sendMessage(tabs[0].id, {type:"getText"}, function(response){
3        alert(response)
4        $("#text").text(response);
5    });
6});