home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Java Script Help

Closed Thread
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2697
Discussions: 200,965, Posts: 2,379,621, Members: 246,332
Old April 19th, 2009, 08:01 PM   Digg it!   #1 (permalink)
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>
machackr is offline  
Old April 19th, 2009, 08:10 PM     #2 (permalink)
Best To Avoid Me
 
Martoch's Avatar
 
Join Date: Mar 2002
Location: Under Your Bed
Posts: 8,863
One thread per topic, please.
Java Script Help

__________________
~ Camp Crystal Lake counselor positions opening daily ~
Martoch is offline  
Closed Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Forty-six years ago today (5)
Is It Just Me? (3006)
The disrespect of Obama by Russian .. (46)
Laptop with wireless problem. (11)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Internet Lost (5)
windows 7 problem (7)
windows vista security holes (14)
Point and Shoot Camera Suggestions. (6)
Is the PSU I received dead? (13)
radeon x850xt platinum & shader.. (6)
Print spooler problem (16)
Recent Discussions
Laptop with wireless problem. (11)
Open With ..... Win7 (2)
Internet Lost (5)
Skillsoft Network+ Study Software Que.. (9)
NO GAS (0)
Help getting around port 80 for camer.. (3)
virus blocking exe. files (1)
windows vista security holes (14)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Nvidia GTX 260 problem (1)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)


All times are GMT -4. The time now is 01:31 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28