here iam using in my page time text field when page is the time is runing
ok its fine but when page is loded ofter the time will be stoped how....its posible ...plz tell me i want only the display time only the page loding time.
this is my script
<td width="18%" class="labeltex t">Creation Time</td>
<td width="45%" class="blanktex t"><html:tex t property="ctime " styleClass="tex t" size="10" maxlength="30" value="${U45.ct ime}"readonly=" true"/> </td>
ss
ok its fine but when page is loded ofter the time will be stoped how....its posible ...plz tell me i want only the display time only the page loding time.
this is my script
Code:
function det_time()
{
var d = new Date();
var c_hour = d.getHours();
var c_min = d.getMinutes();
var c_sec = d.getSeconds();
var t = c_hour + ":" + c_min + ":" + c_sec;
document.all.ctime.value = t;
}
setInterval("det_time()", 1000);
</script>
<td width="18%" class="labeltex t">Creation Time</td>
<td width="45%" class="blanktex t"><html:tex t property="ctime " styleClass="tex t" size="10" maxlength="30" value="${U45.ct ime}"readonly=" true"/> </td>
ss
Comment