KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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" });
Tags (comma-separated)
Save Edits
Cancel