<html>
<head>
<title> clock </title>
<script type="text/javascript">
var hour, minute, second;
function stopwatch()
{
var time = new Date();
hour = time.getHours();
minute = time.getMinutes();
second = time.getSeconds();
document.getElementById("stop").value = hour + ":" + minute + ":" + second;
delete time;
setTimeout("stopwatch()", 1000);
}
</script>
</head>
<body >
<input id="startButton" type="button" οnclick="stopwatch()" value="startWatch"/>
<input id="stop" type="text" />
</body>
</html>
<head>
<title> clock </title>
<script type="text/javascript">
var hour, minute, second;
function stopwatch()
{
var time = new Date();
hour = time.getHours();
minute = time.getMinutes();
second = time.getSeconds();
document.getElementById("stop").value = hour + ":" + minute + ":" + second;
delete time;
setTimeout("stopwatch()", 1000);
}
</script>
</head>
<body >
<input id="startButton" type="button" οnclick="stopwatch()" value="startWatch"/>
<input id="stop" type="text" />
</body>
</html>