DEV Community


Posted on • Updated on

How to append element to HTML document via JS

So, I'm trying to make a search-engine-like HTML file using JavaScript, and I am aware of the document.write() function, but is there a way to use it to append an element like a heading or an image?
EDIT: I'm stupid. Didn't realise you could put elements in the document.write() function.

Top comments (0)