HandsomeTan
Posted on
How to insert elments using Javascript
Element.append()
orElement.apeendChild()
.append
is different fromappendChild
: it can pass not onlyNode object but also strings.
we can use innerHTML attribute to insert strings containing elements into current Node object:Element.innertHTML = '<div></div>'
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse