Try this, I hope u get ur mistake/
<html>
<head>
<title>Basic Functions</title>
</head>
<body>
<script language=javaScript>
var product;
function timesTable(aloLimit,atable)
{
product=aloLimit*atable;
return product;
}
var table=prompt("Enter the times table required","");
var loLimit=prompt("Enter the lower limit of calculation.","");
var hiLimit=prompt("Enter the upper limit of calculation","");
do
{
timesTable(loLimit,table);
document.write(loLimit+" x "+table+" = "+product+"<br>");
loLimit++;
}while (loLimit<=hiLimit);
</script>
</body>
</html>
Always:),
Hovik Melkomian.
|