Wednesday, August 25, 2010

Date and time Programm for HTML


Chapter-2
Today's date and time Programm


<html>
<head>
<title> displaying date </title>
</head>
<body bgcolor="yellow">
<font size="+2" text color="blue">
<center>
<script type="text/javascript">
<!--
var todayDate=new Date(); // declare variable
document.write(todayDate);
/* this will display the current date as well as the current time */
-->
</script>
</center>
</font>
</body> 
</html> 



No comments:

Post a Comment