Skip to content Skip to sidebar Skip to footer

How To Get A Paragraph From The Active Tab With Chrome Extension?

In my background.html I am getting the id, url, and title of the current tab like this: chrome.tabs.getSelected(null, function(tab) { tabId = tab.id; tabUrl = tab.url tabTitl

Solution 1:

You can't do it from a background page, but you can inject content script to all pages, and use message passing to pass this info back to background page on demand.


Post a Comment for "How To Get A Paragraph From The Active Tab With Chrome Extension?"