1. Home
  2. Computing & Technology
  3. JavaScript

Body Fat Calculator

2. HTML

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Introduction Javascript

To insert the body fat calculator into your page the first thing you need to do is to put the following HTML into the body of your page where you want the calculator to appear.

You also need to add a small piece of HTML into the head of your page that will link the Javascript (which we will get next) into the page so that the calculator will function.

<script type="text/javascript" src="fatcalc.js"></script>

All that remains now is to get the fat calculator Javascript that will do the actual calculations.

Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.