JavaScript: Why isn't my clock working?
<p>When I load my page, no clock appears no matter what I do. I have created two buttons. If I remove the button which refers to the <code>stopTime()</code> function which contains <code>clearTimeout(t);</code> then my clock appears. If I put the button back my clock won't work.</p>

<pre><code>&lt;body onload="getTime()"&gt;


  &lt;script&gt;

  var t;

  function getTime() 
  {  
     var time = new Date();

     var hour = time.getHours();
     var minute = time.getMinutes();
     var second = time.getSeconds(); 

     hour = checkTime(hour);
     minute = checkTime(minute);
     second = checkTime(second);

     var actualtime = hour + ":" + minute + ":" + second;

     document.getElementById("time").innerHTML = actualtime;

     t = setTimeout(function(){getTime()},1000);
  }

  function checkTime(i)
  {
      if ( i &lt; 10 )
          i = "0" + i;
      return i;
  }

  function stopTime();
  {
      clearTimeout(t);
  }

  &lt;/script&gt;


&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<p>Thanks in advance!</p>
