<html>
<head>
<title>Calculator</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<script type="text/javascript">
var a;
var b;
a=form.result.value
for(b=1;b<=12;b++)

function calculate()
{
document.write(a+" X "+b+" = "+a*b)
document.write("<br>")
}
function exitwin()
{
window.close()
}
</script>
</body>
<form name=form>
  <div align="center"></div>
  <table width="40%" border="1" height="27%" bordercolor="#3300FF" bgcolor="#000000">
    <tr>
      <td colspan="4">
        <div align="left">
          <input type="text" name="result" size="40" maxlength="50">
          <input type="button" value="Enter" onclick="calculate()">
      </td>

        <td>
        <input type="submit" name="Exit" value="Exit" onclick="exitwin()">
        <td>
        </tr>
        </div>
      </table>
    </form>
    </html>