Free html code for a stopwatch
Hello Experts,
I want to put stopwatch in my quiz website, Please support me to find free html code for a stopwatch or any source for free html code for a stopwatch. Thanks.
Regards,  Â
Donnaa Gordon
Hello Experts,
I want to put stopwatch in my quiz website, Please support me to find free html code for a stopwatch or any source for free html code for a stopwatch. Thanks.
Regards,  Â
Donnaa Gordon
Hi, Below is the code for Stop Watch.
<html>
<head>
<script type="text/javascript">
var c=0;
var t;
var timer_is_on=0;
function timedCount()
{ document.getElementById('txt').value=c;
c=c+1;
t=setTimeout("timedCount()",1000); }
function doTimer()
{ if (!timer_is_on)
 { timer_is_on=1; timedCount(); }}
function stopCount()
{ clearTimeout(t); timer_is_on=0; }
</script>
</head>
Â
Try out the following code in below link