Detect and handle a button click in the active HTML page
问题 Currently, I am creating a WebExtension for Firefox which displays a small div in the active HTML page on the active tab after 6 seconds (not the popup.html in browser_action !). I made a small example that shows a button in the div. My problem is that I don't know how to detect a click event of this button so I can kick off a function? In the moment I handle the event listener in content.js manifest.json: { "manifest_version": 2, "name": "Study06", "version": "1.0", "description": "My web