1 </table>
 2  <script>
 3  //九九乘法表
 4   document.write("<table  width='100%' cellpadding='0' border='1'>")
 5          for(i=1;i<=9;i++){
 6              document.write("<tr>")
 7              for(j=1;j<=i;j++){
 8                 //  document.write('td>'+i+'*'+j+'='+(i*j)+'</td>');
 9                 document.write("<td>" + i + "*" + j + "=" + i * j + "</td>")
10              }
11                     document.write("</tr>")
12          }
13         document.write("</table>")
14  
15  </script>