d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Basic Javascript Countdown Timer Help
Add Reply New Topic New Poll
Member
Posts: 22,030
Joined: Apr 28 2006
Gold: 1,283.00
Jul 14 2014 11:03pm
Hi everyone,

I'm in the process of learning Javascript and my assignment is to build a Javascript countdown timer. The script should accept an initial integer amount of seconds in the window (for example, "116"), count it down to 0, and stop upon reaching this value. Only the amount of seconds to countdown should be displayed (no milliseconds). I need a Start, Stop and Reset button as well.

I figured out how to build a stopwatch but this I can't figure out - any have any live examples to demonstrate? I am stuck on the custom integer that the user can enter...

Thanks!
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 15 2014 05:30pm
Quote (Chaos31 @ Jul 15 2014 01:03am)
I am stuck on the custom integer that the user can enter...

Thanks!

http://stackoverflow.com/questions/763745/how-to-get-text-box-value-in-javascript
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Jul 15 2014 09:24pm
I'd imagine that your professor should have told you how to do that right?

Did you skip a class or something?
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll