Search
 
SCRIPT & CODE EXAMPLE
 

HTML

My Projects

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Video</title>
</head>
<body>
  <button> Add a Number </button>
  <div id="number_1">100</div>
  <div id="number">100</div>
  <script type="text/javascript">
    var count = 100;
    var count_2 = 100;
      function updateCount() {
       count = count - 1;
       if (count === 0) {
            count = 100
            function updateCount_2() {
             count_2 = count_2 - 1;
             document.getElementById("number_1").innerHTML = count_2 ;
            }
            updateCount_2();
       }
       document.getElementById("number").innerHTML = count;
       setTimeout(updateCount, 1);
      }

      updateCount();
  </script>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: vuejs toggle on each in v-for 
Html :: model viewer html 
Html :: html div horizontal 
Html :: iconos html 
Html :: html regex pattern 
Html :: bootstrap input tagsinput 
Html :: html how to change button text 
Html :: nav-pills class bootstrap 
Html :: input select and button on same line 
Html :: html text bold 
Html :: laravel turn excel into html table 
Html :: starter bootstrap 
Html :: x-auth-token 
Html :: html relative path 
Html :: what is anchor tag 
Html :: how to add href of messaGing IN ANCHOR TAG 
Html :: html u tag 
Html :: html number input with commas 
Html :: . and # in html 
Html :: html practice 
Html :: editor html gratis online 
Html :: toptal html interview questions 
Html :: how to link an javascrit to an html fle grepper 
Html :: html link without opening new tab 
Html :: espaçamento bootstrap 
Html :: required pattern date html 
Html :: disable the hashtag to go to top 
Html :: nativescript scrollview full height 
Html :: etiqueta blockquote en html5 
Html :: plantuml multiline footer 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =