Script Categories













Calculators >>> Wavelength.

Assists ham radio operators in converting a frequency to its wavelength in feet or inches. Other uses include acoustic measurement and adjustment, microphone placement, room tuning, and speaker positioning.

MHz
= ft. (or inches.)

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 wavelength(freq, amount, form) {
form.feet.value = amount / freq;
form.inches.value = form.feet.value * 12;
}
//  End -->
</script>
<form>
<table>
<tr>
<td
align=center>
<input type=text size=8 value="" name=freq>MHz
<input type=button value="WL"     onClick="wavelength(this.form.freq.value, 984, this.form);">
<input type=button value="1/2 WL" onClick="wavelength(this.form.freq.value, 468, this.form);">
<input type=button value="1/4 WL" onClick="wavelength(this.form.freq.value, 234, this.form);">
</td>
</tr>
<tr>
<td>
= <input type=text name=feet size=15> ft. (or <input type=text name=inches size=15> inches.)
</td>
</tr>
</table>
</form>

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!).




©