<html> <head> <title>Document Write In Onload</title> <script> function init() { document.writeln('goodbye, world!'); } </script> </head> <body onload="init();"> <p>hello world</p> </body> </html>