In popup.js i'm using the following code to display all the text within a certain div id of the current tab - and display in alert. I'm wondering how would it be possible to save the div text to a variable within popup.js?

Nothing is returned:

var getText = chrome.tabs.executeScript({
  code: "document.getElementById('DIVid').innerText"
});
Edit
Report