Escreva HTML em JavaScript
document.write("<h2>Hello World!</h2><p>Have a nice day!</p>");
// WARNING: The write() method deletes all existing HTML when used on
// a loaded document.
// The write() method cannot be used in XHTML or XML.
// Read more at https://www.w3schools.com/jsref/met_doc_write.asp
Odd Ocelot