Please can some-one help me figure out what is wrong with this code, I cannot get this to work...thanks
Code:
<html>
<head>
<title>Digital Clock</title>
<script type="text/javascript">
<!-- HIDE FROM INCOMPATIBLE BROWSERS
function curTime() {
var now = new date();
var day = now.GetDay();
var date = now.GetDate();
var year = now.GetFullYear();
var month = now.GetMonth();
var hours = now.GetHours() + 1;
var minutes = now.GetMinutes();
var seconds = now.GetSeconds();
var days = new Array();
days[0] = "Sunday";
days[1] = "Monday";
days[2] = "Tuesday";
days[3] = "Wednesday";
days[4] = "Thursday";
days[5] = "Friday";
days[6] = "Saturday";
var display = days[day] + " " + month + "/" + date + "/" + year + " "+ hours + ":" + minutes + ":" + seconds;
document.forms[0].readout.value = display;
var tick = setInterval("curTime()", 1000);
}
//STOP HIDING FROM INCOMPATIBLE BROWSERS -->
</script>
</head>
<body>
<form action="">
<p><input type="text" size="60" name="readout" /></p>
</form>
</body>
</html>
Comment