Convert Fahrenheit to Celsius
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> function inputFah(){ var fah = 100; ansCel = doCelCalc(fah); alert(fah + " Degrees Fahrenheit is " + ansCel + " Degrees Celsius"); } function doCelCalc(fah){ var ans = ((Number(fah) - 32) / 1.8); return (ans); } </script> </head> <body> <input type="button" value="Convert Fahrenheit to Celsius" onClick="inputFah();"> </body> </html>