hi how can i implement a timer (minute-second-millisecond) using simple javascript? It will increment when click on a button.
techyworld 0 Junior Poster in Training
Recommended Answers
Jump to PostYou are talking about timer clock? Using JavaScript may not be that accurate but just OK. However, attempt to deal with millisecond in each iteration is very difficult to get it that accurate. Though, you may try something around 30 millisecond each iteration just to give it a feel of …
Jump to Postvar milli = parseInt(milliEl.value, 10)*10;
Because the display of milli second is in 2 digits, it is actually the hundredth & tenth digit of millisecond. If it is to be display as a whole (0~999), this line would not be there because this one convert from 2 digits …
All 8 Replies
AleMonteiro 238 Can I pick my title?
JorgeM 958 Problem Solver Team Colleague Featured Poster
Taywin 312 Posting Virtuoso
code739 17 Posting Whiz in Training
techyworld 0 Junior Poster in Training
Taywin 312 Posting Virtuoso
techyworld 0 Junior Poster in Training
techyworld 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.