<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Temperatur</title>
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
<script language="JavaScript" type="text/javascript">
<!--
function graderfahrenheit()
{
document.forms["formular"].fahrenheit.value = document.forms["formular"].celsius.value*(9/5)+32
}
//-->
</script>
</head>
<body>
<form name="formular">
<input type="text" name="celsius" size="4" />°C
<input type="button" value="Konvertera till Fahrenheit" onClick="graderfahrenheit()" /> >>>
<input type="text" name="fahrenheit" size="4" />°F
</form>
</body>
</html>
|