Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   Timer in javascript (http://www.go4expert.com/forums/timer-in-javascript-t22277/)

unni krishnan.r 1Jun2010 06:30

Timer in javascript
 
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>


shabbir 1Jun2010 09:02

Re: Timer in javascript
 
If you can't find the thread you can use the search option at the top of the page.


All times are GMT +5.5. The time now is 12:03.