Times Table : Time : Development : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  Development   » [  Time  ]   
 



Times Table

Please note that some example is only working under IE or Firefox.

/*
Javascript Essentials
by Jason J. Manger

Publisher: Mcgraw-Hill Osborne Media; 

ISBN: 0078822343
*/

<!-- 
  Program 3-3
-->
<html>
<head>
<script language="JavaScript">
<!--
function TimesTable(number) {
  var thisLoop = 1;
  document.writeln("Times Table for: <b>" +
                 number + "</b><hr><pre>");
  while (thisLoop <= 12) {
        document.writeln(thisLoop + " x " +
        number + " = " (thisLoop * number));
        thisLoop++;
  }
  document.writeln("</pre>");
}
TimesTable(prompt("Enter a number",10));
//-->
</script>
</head>
</html>

           
       
Related examples in the same category
1.  Formats the current hour and displays it in a static or dynamic way
2.  A Clock Script
3.  Update Time per second
4.  Time: hour, minutes, and seconds.
5.  Display the Current Time in status bar
6.  Creating a Clock Object and Displaying the Results on the Page
7.  Morning or Evening
8.  Time value
9.  Show time in textfield








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.