Guest_imported
New member
- Jan 1, 1970
- 0
Could somebody tell me how to multiply in HTML. The sign * does not work?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<script language="javascript">
function multiply(){
var ans= (document.form.one.value)*(document.form.two.value)
document.form.answer.value=ans;
}
</script>
</head>
<body><form name="form">
<input type="text" name="one" size="2">
<input type="text" name="two" size="2">
<input type="text" name="answer" size="2">
<input type="button" value="answer" name="now" onClick="multiply()"></form>
</body>
</html>