<body>
<script language="JavaScript">
    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>");
        for (col=1; col<10; col++)
            document.write("<td>" + row * col + "</td>");
        document.write("</tr>");
        }
    document.write("</table>");
</script>
</body>