I have made a little extension which inserts buttons into the html page and I have inserted onClick
events on each button, but when i press them they don't work. I have found some topics on this site and a guy was talking about addEventListener
but i couldn't use it. My code is something like this:
var setButton = "<button type='button' id='setter2' onclick=Set_one(this.id)>set</button>";
var str = getRow.insertCell(-1);
str.innerHTML = setButton;