Allows you to find the value of a number squared or that number's square root. Easy!
JavaScript Source Code 3000: Calculators: Square Root Calculator Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
<!-- TWO STEPS TO INSTALL SQUARE ROOT CALCULATOR:
1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Original: Adam Hinz (ajhinz@zworg.com) --> <!-- Web Site: http://www3.cybercities.com/a/ajhinz --> <!-- Modified By: Ronnie T. Moore -->
<! > <! >
<!-- Begin function sqRt(form) { var number = form.num.value; var ans = Math.sqrt(number); form.answer.value = ans; } function sqIt(form) { var number = form.num.value; var ans = eval(number * number); form.answer.value = ans; } // End --> </script> </HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->