You are here: irt.org | About | Feedback | 4809 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q1635
Sent by
simelemon on Tuesday July 17, 2007 at 16:36:37
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
more like dizz:
<html>
<head>
<script language="JavaScript"><!--
function makeDate() {
now = new Date();
var thisMonth = now.getMonth()+1
if (thisMonth < 10){var fullMonth = "0"+thisMonth;}
else {var fullMonth = thisMonth;}
return now.getFullYear() + '-' + fullMonth + '-' + now.getDate();
}
//--></script>
</head>
<body onLoad="document.myForm.myField.value = makeDate()">
<form name="myForm">
<input type="text" name="myField" value="">
</form>
</body>
</html>