how to write words to dom javascript code example Example: document write document.write("Hello World!");