I don't know where is the problem point... (T.T)
script is
<script type="text/javascript">
function printTime(arg) {
var mydate = new Date();
document.getElementById(arg).innerHTML = mydate;
}
function startTimer(arg) {
setInterval(printTime(arg), 1000);
}
</script>
HTML is
<body onload="startTimer('timer')">
<h1 id="timer">
</h1>
</body>