JavaUser123
Technical User
Hi
I Have A Small Form That Has Big Problems
in The Code I Need it so that MHR x Workout = Target BPM HR
Can Someone Help? I Have No Problem With The Contents of the first fieldset
I Have A Small Form That Has Big Problems
in The Code I Need it so that MHR x Workout = Target BPM HR
Can Someone Help? I Have No Problem With The Contents of the first fieldset
Code:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function a_minus_b(form) {
a=eval(form.a.value)
b=eval(form.b.value)
c=a-b
form.ans.value=c
}
function c_times_d(form) {
c=eval(form.c.value)
d=eval(form.d.value)
e=c*d
form.ans.value=c
}
</SCRIPT>
</head>
<body> <fieldset>
<FORM name="formx">
Age
<input type=text size=4 value=12 name="b"> <br>
<input type=hidden value=220 name="a">
MHR <input type=text name="ans">
<input type="button" value="Calculate MHR" onClick="a_minus_b(this.form)">
</FORM> </fieldset>
<form> <fieldset>
MHR <input type=text name="c"> <br>
Workout <input type=text name="d"> <br>
Target BPM HR <input type=text name="ans">
<input type="button" value="Find Target BPM" onClick="c_times_d(this.form)">
</form>
</body>
</html>