<html>
<head>
<title>dsd</title>
<script language="JavaScript">
document.write("<h1>我的乘法表格</h1>");
document.write("<table border=\"1\">");
var
rows=9;
var cols=9;
for(i=1;i<=rows;i++)
{
document.write("<tr>");
for(j=1;j<=9;j++){
if(j<=i)
document.write("<td>" + i +"*"+j
+"="+i*j+"</td>");
else
document.write("<td> </td>");
}
document.write("</tr>");}
document.write("</table>");
</script>
</head>
<body>
<button type="button"
onclick="fun()"><h1>点我啊</h1></button>
</body>
</html>