[objectHTMLDivElement...]
<body>
<div id="time"><div id="twoPoints">:</div></div>
</body>
function time() {
var today = new Date();
var hour = today.getHours();
var minute = today.getMinutes();
var second = today.getSeconds();
var line = "–";
var twoPoints = document.getElementById("twoPoints");
setTimeout("time()" + twoPoints, 1000);
document.getElementById("time").innerHTML = (line + hour + twoPoints + minute + twoPoints + second + line);
}
time();
var twoPoints = document.getElementById("twoPoints").textContent;