Menu
Can anyone help with this one… am new to Javascript.. when I run the following script and get the following output…
In the head section:
<code>
function makeDate()
{
now = new Date();
return now.getYear() + ‘/’ + (now.getMonth()+1) + now.getDate();
}
</code>
In the body section:
<code>
<BODY onLoad=”document.test.dateField.value = makeDate()”>
I put the output in a text field in a form with:
<form name=”test” action=”mypage.php” method=”post”>
and
<input type=”text” name=”dateField” size=”16″ maxlength=”16″ value=””>
</code>
With the following result…
106/48
Any help would be greatly appreciated….
Dave