You are here: irt.org | FAQ | JavaScript | Misc | Q1355 [ previous next ]
In Netscape only:
<script language="JavaScript"><!-- java.lang.System.out.println("hello"); //--></script>
So in a loop:
<script language="JavaScript"><!-- for (i=0;i<10;i++) java.lang.System.out.println(""+(i+1)); //--></script>
If you need Internet Explorer to do it, you will need to load an applet that writes passed values to java.lang.System.out - it should turn up in the file: windows\Java\Javalog.txt as detailed FAQ 4006 - How do I view the error output from my Java applets in Internet Explorer?