<html>
<head>
<script>
function TimeClock() {
var date = new Date();
var hh = date.getHours();
var mm = date.getMinutes();
var ss = date.getSeconds();
document.getElementById('clock').innerHTML =hh + ":" + mm + ":" + ss;
setTimeout(TimeClock, 1000);
}
</script>
</head>
<body onload="TimeClock()">
<div id="clock"></div>
</body>
</html>