i have a code for multiplication of two numbers using java scripting but my objective is to perform operation without using that button and it should occur with both text-field pair. As soon as both input is given in both text-fields, the multiplication function should kick in automatically without any button usage and regardless of anything the two text-field should show output as per their values given in text-fields.
<html>
<head>
<title>Arithmetic operations</title>
</head>
<script type="text/javascript">
function Multiplication()
{
var x,y,z;
x=calc.value1.value;
y=calc1.value2.value;
z=x*y;
calc1.value3.value=z
}
</script>
</head>
<body>
<form name="calc">
<h1>Online Calculator</h1>
Enter first Numeric Value :
<input
id="value1"
type = "text"
onchange = "Multiplication();"
onkeypress = "this.onchange();"
onpaste = "this.onchange();"
oninput = "this.onchange();"
onloadstart ="this.onchange();"
value = "5"
/></form>
</br><form name="calc1">
Enter Second Numeric Value :
<input
id="value2"
type = "text"
onchange = "Multiplication();"
onloadstart="this.onchange();"
onkeypress = "this.onchange();"
onpaste = "this.onchange();"
oninput = "this.onchange();"
value = "1"
/>
</br>
</br>
Result of the Arithmetic operation is : <output type="number" id="value3"> </output></br>
</form>
<form name="calc">
<h1>Online Calculator</h1>
Enter first Numeric Value :
<input
id="value1"
type = "text"
onchange = "Multiplication();"
onkeypress = "this.onchange();"
onpaste = "this.onchange();"
oninput = "this.onchange();"
onloadstart ="this.onchange();"
value = "5"
/></form>
</br><form name="calc1">
Enter Second Numeric Value :
<input
id="value2"
type = "text"
onchange = "Multiplication();"
onloadstart="this.onchange();"
onkeypress = "this.onchange();"
onpaste = "this.onchange();"
oninput = "this.onchange();"
value = "1"
/>
</br>
</br>
Result of the Arithmetic operation is : <output type="number" id="value3"> </output></br>
</form>
</body>
</html>