<html>
<head>
<title>Happy Codings :-) JavaScript Code Examples</title>
</head>
<body>
<H1>
<SCRIPT> 
      var counter = 10; 
      while (counter > 0) 
      { 
         document.write (counter + "<br>"); 
         counter--; 
      } 
   </SCRIPT>
</H1>
</body>
</html>