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