求解  九九乘法表这样写不对吗?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
     <title></title>
</head>
<body>
     <script type="text/javascript">
     document.write("<table>");
     for (var x = 1; x <= 9; x++) {
         document.write("<tr>");
         for (var j = 1; j <= x; j++) {
             document.write("<th>" + y + "*" + x + "=" + y * x + "</th>");
         }
         document.write("</tr>");
     }
     document.write("</table>");
     </script>
</body>
</html
------解决方案--------------------
你的y在哪里呀?是j吧?