document.write function in javascript code example Example: how to right text with js document.write("text");