Counting Clock

[Total: 0    Average: 0/5]

This shows how to have a time with hours:minutes:seconds in one text box.

Body Code:

<form name=exf1>
Time: <input type=text name=t value="?">
</form>
<script>
function doIt() {
  var _d = new Date();
  var _s = _d.getHours()+":"+_d.getMinutes()+":"+_d.getSeconds();
  document.exf1.t.value=_s;
}
setInterval("doIt()",1000);
</script>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *