WE WILL SEE HOW TO CREATE A STOP WATCH.
I am studying java script and created stop watch you can find the code below
HTML - code
<h1><time id= "demo" >00:00:00</time></h1> <!-- this is present time tag -->
<button id="start" onclick="start()" >start</button> <!-- this is start button-->
<button id="stop" onclick="stop()"> stop</button> <!-- this is stop button-->
<button id="clear" onclick="clear()">clear</button> <!-- this is clear button-->
JAVASCRIPT - code
<h1><time id= "demo" >00:00:00</time></h1> <!-- this is present time tag -->
<button id="start" onclick="start()" >start</button> <!-- this is start button-->
<button id="stop" onclick="stop()"> stop</button> <!-- this is stop button-->
<button id="clear" onclick="clear()">clear</button> <!-- this is clear button-->
JAVASCRIPT - code
STOP WATCH - code
0 Comments