Display table of 7

        
<!doctype html>
<html>
   <head>
       <title>Display table of 7</TITLE>
   </HEAD>
   <body>
<h1>  </h1>
       <form name="f1">
           <input type="submit" value="Display table of 7" onClick="display()">
       </form>
    </body>
    <script language="Javascript">
          function display()
          {
              var i;
              document.writeln("table of 7 is as follows:<br>");
              for(i=1;i<=10;i++)
              {
                document.writeln("7*"+i+"="+(7*i)+"<br>");
              }
          }
     </script>
</html>


        
    


Go back