Script Categories













Calculators >>> Wind Chill.

Wind Chill is a mysterious and often misunderstood phenomenon. This script describes what the wind chill factor really is and offers a form to calculate the wind chill factor when given the air temperature and wind speed.

Wind Speed (MPH) =
Air Temperature (?F) =

? F

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function windChill(form) {
wind=eval(form.wind.value);
temp=eval(form.temp.value);
chill=(0.0817*(3.71*(Math.pow(wind, 0.5))+
5.81-0.25*wind)*(temp-91.4)+91.4);
form.windchill.value = chill;
}
//  End -->
</script>
<form action="" method=post name=windform>

<table border=1 cellpadding=3 cellspacing=0 width="250">
<tr>
<td
align=center>
Wind Speed (MPH) =
</td>
<td
align=center>
<input type=text name=wind value="" size=6>
</td>
</tr>
<tr>
<td
align=center>
Air Temperature (?F) =
</td>
<td
align=center>
<input type=text name=temp value="" size=6>
</td>
</tr>
<tr>
<td
colspan=2 align=center>
<br>
<input type=button value="Calculate Wind Chill" onclick="windChill(this.form)">
<p>
<input name=windchill type=text value="" size=10> ? F
</td>
<tr>
</table>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©