Closed Thread
Results 1 to 2 of 2
  1. #1
    Junior 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>

  2. #2
    Best To Avoid Me Martoch's Avatar
    Join Date
    Mar 2002
    Location
    Under Your Bed
    Posts
    8,909
    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

  1. Java Script Help
    By machackr in forum Webmastering and Programming
    Replies: 4
    Last Post: April 21st, 2009, 03:13 PM
  2. Java script help
    By Network67 in forum Applications and Operating Systems
    Replies: 0
    Last Post: March 25th, 2005, 04:48 AM
  3. Java Script - Help!
    By rcwabbits in forum Webmastering and Programming
    Replies: 0
    Last Post: April 24th, 2003, 10:44 PM
  4. Java script and IE
    By Bill in SD, CA in forum Applications and Operating Systems
    Replies: 2
    Last Post: April 10th, 2003, 02:39 PM

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews