Centigrade/Farenheit converter

From Wikiid
Revision as of 17:40, 23 November 2007 by SteveBaker (Talk | contribs) (New page: <SCRIPT LANGUAGE="JavaScript"><nowiki> function convertCtoF() { var centy=0; centy=document.Converter.centigrade.value; document.Converter.fahrenheit.value= centy *9/5+32 ; } function co...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<SCRIPT LANGUAGE="JavaScript"> function convertCtoF() { var centy=0; centy=document.Converter.centigrade.value; document.Converter.fahrenheit.value= centy *9/5+32 ; } function convertFtoC() { var centy=0; centy=document.Converter.fahrenheit.value; document.Converter.centigrade.value= (centy-32)*5/9 ; } </SCRIPT>

<form name="Converter">

Centigrade 
<input type=text name="centigrade" size=10 onchange="convertCtoF()">
Farenheit  
<input type=text name="fahrenheit" size=10 onchange="convertFtoC()">

</form>