May 7, 2013

Time in JavaScript

Coding

<html>
<body>
<script language="JavaScript">
var d = new Date()
document.write(d.getHours())
document.write(".")
document.write(d.getMinutes())
document.write(".")
document.write(d.getSeconds())
</script>
</body>
</html>

No comments:

Post a Comment

Popular Posts

Views