<head>
<script type="text/javascript">
function tableclock()
{
var date=new Date();
document.getElementById().value=(date.getHours():date.getMinutes():date.getSeconds();)
}
window.setinterval("tableclock()",1000);
</script>
</head>
<body>
<input type="text" id="txtclock"/>
</body>