以換行方式撰寫文字
document.writeln 可以換行方式撰寫文字(需包在<pre></pre>內)
程式碼如下:
<script>
document.writeln("This is line 1.");
document.writeln("This is line 2.");
document.writeln("This is line 3.");
document.writeln("This is line 4.");
</script>