Thread: Java Script Help
-
April 19th, 2009, 07:01 PM #1Junior Member
- Join Date
- Apr 2009
- Posts
- 4
Java Script Help
I need help with my script. I am trying to figure out the lowest maximum heart rate and highest maximum heart rate for exercise. New to javascript any help would be greatly appreciated.
here's what i have so far
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>HeartRate</title>
<script>
var age
max = function maxHeartRate(age)
{
(220-age);
}
</script>
</head>
<body>
<form>
<p>Age<input type="text" id="year" name="Year"></p>
<input type="button" value="Age Input" name="Age">
<onclick = maxHeartRate(age)>
</form>
<script>
var lowestTarget= max*.5
var maxTarget = max*.85
document.write("<p>" + "Max heart rate is " + max + "</p>");
document.write("<p>" + "Maximun Target rate is " + maxTarget + "</p>");
document.write("<p>" + "Lowest max rate is " + lowestTarget + "</p>");
</script>
</body>
</html>
-
April 19th, 2009, 07:10 PM #2
One thread per topic, please.
Java Script Help
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Java Script Help
By machackr in forum Webmastering and ProgrammingReplies: 4Last Post: April 21st, 2009, 03:13 PM -
Java script help
By Network67 in forum Applications and Operating SystemsReplies: 0Last Post: March 25th, 2005, 04:48 AM -
Java Script - Help!
By rcwabbits in forum Webmastering and ProgrammingReplies: 0Last Post: April 24th, 2003, 10:44 PM -
Java script and IE
By Bill in SD, CA in forum Applications and Operating SystemsReplies: 2Last Post: April 10th, 2003, 02:39 PM



LinkBack URL
About LinkBacks




The fan vote went to miss popularity Danica Patrick instead of a driver with a real chance at winning.
Is It Just Me? v233893843