Help..
We cannot get this script to work..can someone take a look at it and make
suggestions?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Conver t Temperature</title>
<script language="javas cript">
<!-- hide from incompatible browsers
function convert_celcius (){
(document.fahre nheit.value - 32)*5/9;
}
function convert_fahrenh eit(){
(document.celci us.value * 1.8)+32;
}
//stop hiding from incompatable browsers -->
</script>
</head>
<body><pre>
<h1>Convert Temperature</h1>
<h3>Enter the temperature in Celcius</h3>
<input type="text" name="fahrenhei t"
onChange="fahre nheit.value";>
<input type="button" value="Convert to Celcius"
onClick="alert( 'Converted to celcius' + convert_celcius[])";><br />
<h3>Enter the temperature in Fahrenheit</h3>
<input type="text" name="celcius"
onChange="celci us.value";>
<input type="button" value="Convert to Fahrenheit"
onClick="alert( 'Converted to Fahrenheit ' + convert_fahrenh eit[]";>
</pre></body>
</html>