Chrome Extension Messaging Between Popup.html And Content.js
So I have this script that runs on a website and gathers some data based on certain parameters, which works perfectly fine by itself, but I want to be able to have a browserAction
Solution 1:
You need to add an on click event listener using Javascript in the popup, in contrast to defining the event inline in the html.
document.getElementById("mb").addEventListener("click", function(e){
//event will trigger here
}
Post a Comment for "Chrome Extension Messaging Between Popup.html And Content.js"