I have background.js
file, that works everywhere in browser.
I tried to write JS that listen click event then passes control to content.js
script for handling.
I need to detect click on the page and after call custom method.
How can I do that?
I tried in backgronud.js
:
chrome.browserAction.onClicked.addListener(function(activeTab){
});
click
events within the web page? In a specific web page? All web pages? On a browser action button? Call what custom method? A custom method in a content script? In the background script? To do what?