Dear readers
I am not very expert in Javascript , i just want to show the date in textbox where the user can not change the date , and it will show automatically when you load the form, anyone can help me , i got cod for my time as followes:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“
<html xmlns=”
<head>
<title>prac2 </title>
<script type=”text/javascript”>
<script type=”text/javascript”>
var currentTime = new Date();
document.write(“<p>” + currentTime.getDate() + “/”
+ (currentTime.getMonth()+1) + “/”
+ currentTime.getFullYear() + “</p>”);
</script>
</head>
<body>
<form id=”prac2″ method=”post” action=”
<p>Today’ Date <input type=”text” name=”time” vlaue=”currentTime” size=”20″ maxlength =”16″ readonly=”readonly” />
</form>
</body>
</html>