<!-- Test Joined JavaScript "document.writes" 07/03/2000-11/21/2000 --> <!-- ---------------------------------------------------- 11/21/2000 --> <!-- www.davar.net/PC/JAVA-SCR/TEST-JDW.HTM --> <HTML> <HEAD> <TITLE>Test Individual JavaScript "document.writes" (JavaScript at Davar Web Site)</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="Text/HTML; CharSet=ISO-8859-1"> <META NAME = Description CONTENT="Page: Test Individual JavaScript "document.writes". Site: Davar Web Site, Consulting, Programming, Mainframe, PC, Mathematics, Go, Zen, Quotations, Extracts, Humor, Taglines, Russian."> <META NAME = Keywords CONTENT="Davar Web Site, JavaScript, document.write"> <META NAME = Author CONTENT="Vladimir Veytsel"> <LINK REV = Made HREF ="mailto:Davar@poboxes.com"> </HEAD> <!-- Page: Test Individual JavaScript "document.writes". Site: Davar Web Site, Consulting, Programming, Mainframe, PC, Mathematics, Go, Zen, Quotations, Extracts, Humor, Taglines, Russian. --> <FONT FACE="Times New Roman" SIZE=3> <CENTER> <FONT SIZE=4 COLOR=Red><B><U>Test&nbsp; Joined&nbsp; JavaScript&nbsp; "document.write"</U></B></FONT> <BR>&nbsp; <TABLE> <TR> <TD WIDTH=700> <P ALIGN=Justify>All elements of the table are <U>joined</U> (concatenated) into <U>one</U> string which is used as an argument of a <U>single</U> <B>document.write</B> that creates HTML code for the <U>entire</U> table.&nbsp; (Page loading/reloading time is noticeably <U>shorter</U> than that for the test which uses <A HREF="TEST-IDW.HTM">individual</A> <B>document.write</B>s to create HTML code for <U>each</U> element of the table). </P> </TD> </TR> </TABLE> <BR> <SCRIPT LANGUAGE=JavaScript> <!-- Buffer="<TABLE BORDER=1 CELLSPACING=0>" for (i=1;i<20;i++) {Buffer=Buffer+"<TR>" for (j=1;j<20;j++) {Buffer=Buffer+"<TD><IMG SRC='EC.JPG' WIDTH=33 HEIGHT=33></TD>"} Buffer=Buffer+"</TR>" } Buffer=Buffer+"</TABLE>" document.write(Buffer) //--> </SCRIPT> <BR> Use [<FONT COLOR=Red>Back</FONT>] button or [<FONT COLOR=Red>Alt</FONT>]+[<FONT COLOR=Red>CL</FONT>] to return to the previous page </CENTER> </FONT> </BODY> </HTML>