Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




 

Celsius into fahrenheit

Example

Degrees Celsius Degrees Fahrenheit

This JavaScript is designed to allow people visiting your web page to do their own little calculation / Math assignment right on your web page.

Source code

<script language="Javascript">
<!--
function temp (form)
{form.fahrenheit.value = form.celsius.value*1.8+32}
//-->
</script>

<form>
<div align="center"><center><p><input type="text" size="15" name="celsius"> <strong>Degrees
Celsius</strong> <input type="button" value=" = " onclick="temp(this.form)"> <input
type="text" size="15" name="fahrenheit"> <strong>Degrees Fahrenheit</strong> </p>
</center></div>
</form>

Index

Category:
Cool Tricks

Companies:
None

Related Pages:
HTML Help

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope