Timer in javascript

unni krishnan.r's Avatar, Join Date: Apr 2010
Skilled contributor
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>
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
If you can't find the thread you can use the search option at the top of the page.