1. Home
  2. Computing & Technology
  3. JavaScript

Cross Stitch Calculator

3. Javascript

Join the Discussion

Questions? Comments?

More of this Feature

Introduction Obtain the HTML

With our calculator inserted into the web page and looking the way we want all that remains is to copy the below Javascript code ans save it as stitch.js.

We attach this into the head of our page with the following code

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

The actual calculations that this calculator performs are actually quite simple and so as with most Javascript calculators the majority of the code that is needed is for validating the values entered and making sure that they are in the right format.

Explore JavaScript

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.