<HTML> <HEAD> <TITLE>......</TITLE> <HEAD> <BODY> yyyy<BR> <-- html <CENTER> <-- html xxxx<BR> <-- html xxxx<BR> xxxx<BR> <SCRIPT> window.document.open() <-- start generated and intelligent output
window.document.writeln("<TABLE BORDER=2>"); for (var i=1; i<11; i++) { window.document.writeln ("<TR><TD>",i," x 13 = </TD><TD>",13*i,"</TD></TR>") } window.document.writeln("</TABLE>"); window.document.close() <-- end generated and intelligent output
</SCRIPT> xxxx<BR> xxxx<BR> <-- html xxxx<BR> <-- html </CENTER> <-- html yyyy<BR> <-- html </BODY> </HTML>
You see that during the loading of execution of the file the script 'generates' html-code. You see a table with some calculations and some texts.
Remark 2: In normal scripts a programmer seldom use writeln. Mostly, only in test situations or in didactical situations. Programmers prefer fields for output. Than he and the user can work online and interactive.
Enschede, 20 jan. 2000; updated jan. 28, 2003