1. Home
  2. Computing & Technology
  3. JavaScript

Metric Calculator

3. Obtain the Script

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Introduction Sample

To add the metric conversion calculator to your web page you need to copy the following script and attach it into the body section of your page where you want the calculator to appear.

Once you have created your code you just save it to an external javascript file. I called mine metric.js. The final step is to link it into the body of your page where you want the calculator to appear using the following code:

<script type="text/javascript" src="metric.js">
</script>
Introduction | Sample Page | Obtain the Script
Explore JavaScript
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

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

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.