0

What can I do if i don't want document.body.innerHTML to erase some of my content?

14th Dec 2016, 8:21 AM
caleb deng
caleb deng - avatar
2 Antworten
+ 3
I think you could just use var elem = /* Get element */; elem.innerHtml += "added text";
22nd Jun 2017, 7:40 PM
MCJEH
MCJEH - avatar
+ 1
Select an element inside it and edit that instead.
14th Dec 2016, 9:06 AM
Kerrash
Kerrash - avatar