title: Display current time in a remote computer javascript
body: <p>I try to display the current time in my server(the web page it's in my server) but when I open the web page I get the time on the computer that runs the page.</p>
  
  <p>Is there a way to do that ?</p>
  
  <p>This is my code :</p>
  
  <pre><code>function startTime(){
    var today=new Date();
    var h=today.getHours();
    var m=today.getMinutes();
    var s=today.getSeconds();
  
    m=checkTime(m);
    s=checkTime(s);
    $('#cTime').val(h+":"+m+":"+s);
    t=setTimeout(function(){startTime()},500);
  }
  
  function checkTime(i){
    if (i&lt;10) {
           i="0" + i;
        }
    return i;
  }
  </code></pre>
  
  <p>Thank you.</p>