java script document.wirte code example Example 1: how to right text with js Click to copydocument.write("text"); Example 2: document write Click to copydocument.write("Hello World!");