addEventListener gone after appending innerHTML
- by Vishal Shah
Okay, so i have the following html added to a site using javascript/greasemonkey.
(just sample)
*a id='abc'*HEllo*/a*
*a id='xyz'*Hello*/a*
(excuse me, i've had to replace the '<' '' with * since hyperlinks for new users aren't allowed!)
and i've also added a click event listener for the elements.
All works fine up to this point, the click…