title: using isNan() function to pass parameter to javascript from html and check value then return value
body: <p>I am basically trying to get a user entered value to be checked and confirmed that it is a number between 10 &amp; 100, once confirmed store into the variable 'num2' - thanks </p>
  
  <p></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
      &lt;script type ="text/javascript"&gt;
      &lt;!--
        function numcheck(pass) {
        var num2 =0;
        isNan()= numcheck(pass);
  
      if (isNan() == true)
      {
      alert("You can only enter a number in the text field");
      }
      else if (isNan() &lt;=10 || isNan(p) &gt;=100)
      {
      alert ("You must enter a number between 10 and 100");
      }
      else
      num2 = inNan();
      alert ("You have entered var2" + "which has now been stored, thankyou");
      return num2;
       --&gt;
      &lt;/script&gt;
      Number: &lt;input type = “text” name = “numcheck” /&gt;
      &lt;button onClick="numcheck();"/&gt; Enter &lt;/button&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>