Full version: jsB@nk » Utility » Training Heart Rate
URL: https://www.javascriptbank.com/training-heart-rate.html
This JavaScript will help you calculate your training heart rate. That figure is used to determine the target zone for aerobic training.
Full version: jsB@nk » Utility » Training Heart Rate
URL: https://www.javascriptbank.com/training-heart-rate.html
<script>// Created by: Larry Wiley :: http://schools.nsd.org/%7Elwiley/function alertwiththr() { var rhr = prompt("What is your resting heart rate?", "") var age = prompt("What is your age?", "") var tot = 220 - +rhr+ - age var lowfinal = tot *.7 + +rhr var hifinal = tot *.9 + +rhr alert("Your target heart rate is between" +" "+lowfinal+" "+ "and"+" " +hifinal)}</script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form> <input type="button"Style="font: 12pt Lithos Regular;background:blue;color:white" value="Calculate Your Training Heart Rate" onclick="alertwiththr()"></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->