title: Javascript does nothing
body: <p>This following code do nothing .When i click button it should tell my how many guess computer has taken to find my given input. I am using Adobe Dreamweaver.What might be wrong ?</p>
  
  <pre><code>&lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;/head&gt;
  
   &lt;body&gt;
      &lt;p&gt; How many finger ? &lt;/p&gt;
      &lt;p&gt;&lt;input id="myNum" type="text"&lt;/p&gt;
      &lt;button id="guess"&gt; Mafia &lt;/button&gt;
      &lt;script type="text/javascript"&gt;
      document.getElementById('guess').onclick=function(){
          var myNumber=document.getElementById('myNum').value;
          var GotIt=False;
          var NumOfGuess=0;
          while(GotIt==False)
          {
          var guess=Math.random();
          guess=guess*6;
          guess=Math.floor(guess);
          if(guess==myNumber)
          {
              GotIt==True;
              alert("Got It");
              alert("You took"+ NumOfGuess +"guess");
          }
          else
          {
              NumOfGuess+=1;
          }
  
  
      }
      }
  
  
      &lt;/script&gt;
   &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>