DEV Community

miko1112
miko1112

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?
sys.exit()
EDIT: I'm stupid. Didn't realise you could put elements in the document.write() function.

Discussion (0)