Javascript Stopwatch

StopwatchThe other day I needed a stopwatch to time a talk I was giving, but I had a problem. My stopwatch was ALL the way outside in the garage! Now I obviously wasn't going to get up and get it, so I figured there's gotta be something online. Sure enough, there are quite a few online stopwatches.

After using one, I started to think "Man, I should try to make this, it'll be a good exercise". So I did.

And I failed... Sort of... I've only worked with time in javascript a couple times, so after trying to figure it out for awhile, I modified some code I'd found a couple different javascript stopwatches using. Then I added some cool extra functionality and styled it all up with CSS (with CSS3 features!).

Hopefully you'll find this useful. And if not, at least it looks cool!

Javascript Stopwatch


Comments

  • Joe Joe December 6, 2009

    Man, I can't wait to start Javascript next term.

  • Walter Rojas Walter Rojas November 29, 2010

    Hi ! Greetings from Argentina! 1º) Sorry, but my english is very poor. 2º) Can i have this javascript to put in a system for kart races?
    I need get lap timing!
    Can you send me? I need use it without internet connection!
    Thanks!
    Walter.

  • Steve Husting Steve Husting November 30, 2010

    Is it possible to get your permission to include this stopwatch in an iPhone app? I need a lap counter where the clock keeps running while counting laps - yours does the job admirably well!

    Thanks,
    Steve Husting

  • Corey Worrell Corey Worrell November 30, 2010

    @Walter Rojas:
    Sure! Just copy the code from the Stopwatch site.

    @Steve Husting
    Yes, please go ahead!


Add Comment

  • (optional)