Javascript Example
Screen shot
Javascript run time clock

<html>
<head>
<title>Javascript example</title>
<script language="javascript" type="text/javascript">
function timing()
{
var a=new Date();
h=a.getHours();
m=a.getMinutes();
s=a.getSeconds();

if(s<=9) s="0"+s;
if(m<=9) m="0"+m;
if(h<=9) h="0"+h;

time=h+":"+m+":"+s;
document.frm.mytime.value=time;
setTimeout("timing()",1000);
}
</script>
</head>
<body>
<form name="frm">
<input type="text" name="mytime" size="8">
<script language="javaScript" type="text/javascript">
timing();
</script>
</form>
</body>
</html>

You can download source code here