PDA

View Full Version : help getting scripts to work in an input tag


newdude2
12-06-2002, 08:59 AM
I managed to get my hands on some code to get the current date and time and i have placed this code in the header of my page,

Mins = Stamp.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}
//document.write('<font size="2" face="Arial"><B>' + Hours + ":" + Mins + Time + '</B></font>');

however, I am having the greatest problem putting this value in my input field within the body of my page

<td bgcolor="#EFF7DE" ><font class="medium_bold">Time Received</font></td>

<td class="medium"><input type="text" class="text_box" size="44" name="recvt" id="recvt" value="Hours" ></td>

I would appreciate any suggestions on how to accomplish this.