Javascript Pre-defined Function
<pre><code>function processForm() {

    var temperature = document.tempForm.temp.value;

}
</code></pre>

<p>According to designed button,I want to take temperature value from text field and to convert numeric value then store it in variable "temperature" that I defined.</p>

<p>JavaScript has a built-in function called Number(). It converts the value in parentheses to a number that can be used in calculations. If it is not a number, it will return NaN (Not a Number).</p>

<p>How can I do this?</p>
