Timer in javascript

Skilled contributor
1Jun2010,06:30   #1
unni krishnan.r's Avatar
I fount a user asking for timer in javascript it is for him/her
Code:
<script type="text/javascript">
var current Time=new Date()
var hours=current Time.hours()
var minutes=current Time.minutes()
if (minutes<10)
minutes="0"+minutes
document.write(hours+":"+minutes)
if(hours>11)
{
document.write("P.M")
}
else
{
document.write("A.M")
}
</script>
Go4Expert Founder
1Jun2010,09:02   #2
shabbir's Avatar
If you can't find the thread you can use the search option at the top of the page.