Passing Data from a field to the function
The .value attribute
function MyFunction1()
var w = parseInt(document.form1.field1.value,10);
var x = parseInt(document.form1.field2.value,10);
var y = parseInt(document.form1.field3.value,10);
var z = w+x+y;
var v = w*x*y;
var u = w/x/y;
var t = w-x-y;
document.form1.field4.value=z
document.form1.field5.value=v
document.form1.field6.value=u
document.form1.field7.value=t
<form name="form1">
Enter W:<input type = text name=field1>
Enter X:<input type = text name=field2>
Enter Y:<input type = text name=field3>
Z = W+X+Y:<input type = text name=field4>
V = W*X*Y=:<input type = text name=field5>
U = W/X/Y:<input type = text name=field6>
T = W-X-Y:<input type = text name=field7>
</form>