Result Size: 300 x 150
x
 
<!DOCTYPE html>
<html>
<body>
<p id="demo">Годинник</p>
<button onclick="clearInterval(myTimer)">Стоп</button>
<script>
var myTimer = setInterval(myClock, 1000);
function myClock() {
  document.getElementById("demo").innerHTML = new Date().toLocaleTimeString();
}
</script>
</body>
</html>