A simple HTML code that converts Fahrenheit to Celsius and Vice Versa.
Convert Fahrenheit to Celsius
<font size=+1>Enter a number in either field, then click outside
the text box. <form>F: </font><input type="text" name="F" value="32"
onChange="C.value = 100/(212-32) * (this.value - 32 )">
<br><font size=+1>C: </font><input type="text" name="C" value="0"
onChange="F.value = (212-32)/100 * this.value + 32 ">
<center></form>
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.