DEV Community


How to append element to HTML document via JS

python/pico-8 addict and wanna-be hacker
Updated on ・1 min read

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.

Discussion (0)