Javascript Button onClick not working in Chrome extension popup
问题 (link to git: https://github.com/Boundarybreaker/NameBlock) I'm working on a text-replacement extension that can be toggled on and off with a button clicked in the popup.html , but it only is happening when I click the icon. (video: https://drive.google.com/file/d/0B_3pLT_KI8V8OHJFUHQ5a1JURkE/view?usp=sharing) The code for the button reads <button class="ui fluid red button" onclick=toggleActive() id="toggle">Toggle Active</button> , and toggleActive() is a function in background.js , along