撰寫文字
document.write 可撰寫文字
程式碼如下:
<script>
document.write("This is line 1.");
document.write("<br>");
document.write("This is line 2.");
document.write("<br>");
document.write("This is line 3.");
document.write("<br>");
document.write("This is line 4.");
</script>