I would like to help me find a way how to count the clicks of a button with class and appear it on a chrome extension like the numbers that adblock has on its counter. Is this possible?
I have this code of button
<a class="button" href="#" role="button">
<span>Button</span></a>
And i want a code that every time i hit this button to add +1 on the chrome extension icon like in adblock.
But this code does not have any "onClick" is it possible to be done?
Thanks for your time!