# Minute Counter in Javascript

**URL:** <https://forum.kirupa.com/t/minute-counter-in-javascript/280030>\
**Category:** web dev\
**Created:** [January 21, 2009, 9:02pm UTC](https://forum.kirupa.com/t/minute-counter-in-javascript/280030 "2009-01-21T21:02:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robson\_jerome](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@robson\_jerome](https://forum.kirupa.com/u/robson_jerome)\
**Post date:** [January 21, 2009, 9:02pm UTC](https://forum.kirupa.com/t/minute-counter-in-javascript/280030/1 "2009-01-21T21:02:06Z")

</div>

Hi. I’m doing a website called [wastedminutes.com](http://wastedminutes.com) and I would like a counter at the top telling the user how many minutes they’ve wasted on the website.  
Can anyone give me some Javascript code with which to achieve this?  
Preferably it would keep a running counter without having to refresh the page.  
Is javascript the right thing to be using?

Thanks
