Hacker News new | ask | show | jobs
by joquarky 114 days ago
> need innerHTML

parent.appendChild(document.createElement(tag))

1 comments

How is adding an element to the parent the same as replacing all the content of the element? You guys are exhausting. Think a bit before spouting nonsense?