Hi, I have a small query. What I have done so far is below.
<html>
<head>
<title>Times table Drill 2</title>
</head>
<body>
<script language="JavaScript">
<!-- hide code
var e
e = (Math.random() * 11 ) + 1;
document.write(parseInt(e));
document.write("<br>");
var f
f = (Math.random() * 11 ) + 1;
document.write(parseInt(f));
var g
g = prompt("Please mutliply the two numbers", "Answer");
if ( e * f)
{
alert("Congratulations, your answer is correct");
}
-->
</script>
</body>
</html>
What needs to be done. I've got this far. Next needs the form needs to display 2 new integers(numbers).
Any help would be appreciated.
Thanks
<html>
<head>
<title>Times table Drill 2</title>
</head>
<body>
<script language="JavaScript">
<!-- hide code
var e
e = (Math.random() * 11 ) + 1;
document.write(parseInt(e));
document.write("<br>");
var f
f = (Math.random() * 11 ) + 1;
document.write(parseInt(f));
var g
g = prompt("Please mutliply the two numbers", "Answer");
if ( e * f)
{
alert("Congratulations, your answer is correct");
}
-->
</script>
</body>
</html>
What needs to be done. I've got this far. Next needs the form needs to display 2 new integers(numbers).
Any help would be appreciated.
Thanks