<body> <script language="JavaScript"> function oneLine(row) { for (col=1; col<10; col++) document.write("<td>" + row * col + "</td>"); } document.write("<table border=1><tr><th>*\t</th>"); for (col=1; col<10; col++) document.write("<th>" + col + "</th>"); document.write("</tr>"); for (row=1; row<10; row++) { document.write("<tr><th>" + row + "</th>"); oneLine(row); document.write("</tr>"); } document.write("</table>"); </script> </body>