If you update innerHTML, whatever was there before is totally deleted. This also applies when using the += operator. (case in point, my productivity extension).
Solution: element.insertAdjacentHTML("beforeend", whatever_new_html);
Search
Jan 11, 20261 min read
If you update innerHTML, whatever was there before is totally deleted. This also applies when using the += operator. (case in point, my productivity extension).
Solution: element.insertAdjacentHTML("beforeend", whatever_new_html);