How I can use Ordered list in while loop

Discussion in 'HTML & Website Design' started by Proud Pakistani, Dec 16, 2006.

  1. #1
    Hello Buddies...
    can anyone help me in using Ordered list while using WHILE loop.
    For Example
    The code is
    <html>
    <body bgcolor="#84AEC6">
    <h2>Table of 10 using While Loop</h2>
    <script type="text/javascript">
    var i=1;
    while (i<=10)
    {
    document.write(i+"*10=" + i*10)
    document.write("<br />")
    i=i+1;
    }
    </script>
    </body>
    </html>


    Now I want to use Order list with every line while printing this table.
    Infact i am new in using java scripting :confused: ... i am unable to understand this logic....
    Can Any One Help ....
     
    Proud Pakistani, Dec 16, 2006 IP
  2. Proud Pakistani

    Proud Pakistani Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    emmmmmmmmm ...
     
    Proud Pakistani, Dec 16, 2006 IP