how to write js using document.write in javascript code example Example: How to write on a web page javascript document.write("Hello") !-- Hello for example