BMI Calculator Script, Body Mass Index Calculation

A simple script that allows you to identify whether you have a healthy or an unhealthy body weight by calculating the body mass index. This BMI calculator takes the value of height and weight for this calculation.

Features

  • Javascript body mass index script to identify whether a person's weight is normal or obese or underweight.
  • Weight can be entered either in kilograms or pounds.
  • This is a free javascript calculator.
  • Just copy and paste the code of BMI calculator script into your page and use it.

Preview


BMI Calculator

Weight:

Height: or cms

    

SI Units:
US Units:
UK Units:

Downloads

  • Release Date - 01-12-2007
  • Downloads : Version 1.0 - hbmi.zip
  • Get free version without ©copyright link for just $10/-
  • For customization of this script or any script development, mail to support@hscripts.com

Usage

  • Unzip the file hbmi.zip to extract the files hbmi/bmi.js , hbmi/README.txt.
  • Now copy the following code in to the file where you want the bmi script to run.
  • <!-- Script by hscripts.com -->
    <!-- BMI : Body mass index Script Provided By HIOXINDIA -hioxindia.com -->
    <form name=bmi>
    Weight: <input type=text name=wg size=5 >
    <select name=opt1 onChange="unit()" >
    <option value="pounds">pounds</option>
    <option value="kilograms" selected>kilograms</option>
    </select>
    Height: <select name=opt2 onChange="conv(1)">
    <option value="1">1'</option>
    <option value="2">2'</option>
    <option value="3">3'</option>
    <option value="4">4'</option>
    <option value="5">5'</option>
    <option value="6">6'</option>
    <option name=feet value="7">7'</option>
    </select>
    <select name=opt3 onChange="conv(2)">
    <option value="0">0"</option>
    <option value="1">1"</option>
    <option value="2">2"</option>
    <option value="3">3"</option>
    <option value="4">4"</option>
    <option value="5">5"</option>
    <option value="6">6"</option>
    <option value="7">7"</option>
    <option value="8">8"</option>
    <option value="9">9"</option>
    <option value="10">10"</option>
    <option value="11">11"</option>
    </select>
    or cms<input type=text name=ht size=5 onkeyup="conv(3)" class='innerc resform'>
    <input type=button name=cc value="Calculate" onClick="calc()">
    <table cellspacing=0 cellpadding=3 border=0>
    <tr align=center class="abouttabletext"><td>SI Units: <input type=text readonly class=resform name=si>
    <tr align=center class="abouttabletext">
    <td>US Units: <input type=text readonly class=resform name=us>
    <tr align=center class="abouttabletext"><td>UK Units: <input type=text readonly class=resform name=uk>
    </table>
    <table width=100%>
    <tr><td colspan=2 align=center>
    <input type="text" name=desc size=30 class=content readonly style="border:0px;">
    </td>
    </tr>
    </table>
    </form>
    <script type="text/javascript" src="hbmi/bmi.js">
    </script>
    <!-- Script by hscripts.com -->

License

Related Scripts

Free Javascript Scripts


Ask Questions

Ask Question