deldel
05-10-2009, 10:59 AM
hi i dont know what is wrong with this code and why it is not working could someone please help me and tell me what i am doing wrong and what i need to do! thankyou
<html>
<head><title>Displaying dates and times</title></head>
<body>
<h1>Current Date and Time</h1>
<p>
<script language="JavaScript">
localtime= now.toString();
utctime= now.toGMTString();
document.write("<b>Local time:</b> " + localtime + "<BR>");
document.write("<b>UTC time:</b> " + + "</p>");
hours= now.getHours();
mins= now.getMinutes();
document.write("<font size='+5'>");
document.write(hours+ ":" + mins +":" + secs);
doucment.write("</font>);
</script>
</body>
</html>
<html>
<head><title>Displaying dates and times</title></head>
<body>
<h1>Current Date and Time</h1>
<p>
<script language="JavaScript">
localtime= now.toString();
utctime= now.toGMTString();
document.write("<b>Local time:</b> " + localtime + "<BR>");
document.write("<b>UTC time:</b> " + + "</p>");
hours= now.getHours();
mins= now.getMinutes();
document.write("<font size='+5'>");
document.write(hours+ ":" + mins +":" + secs);
doucment.write("</font>);
</script>
</body>
</html>