Javascript examples for DOM:Document write
Document write() Method - Write some text directly to the HTML document, with a new line using <br>
<!DOCTYPE html> <html> <body> <script> document.write("Hello World! <br>"); document.write("Have a nice day!"); </script>/*from w ww . java 2 s .c om*/ </body> </html>