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
Sep 01, 20251 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);