| |
kya_karey
Posts: 39
Score: 0
Joined: 5/11/2005
From: India
Status: offline
|
Hi , i want to add columns in table by clicking the button "Add col" here is my script <html> <body> <div id=Table1></div> <input type="Button" value="Enter columns" OnClick="EnterCol()"> <div id=Table1> <table border=1> <tr> <td>Id(No)</td> <td>ABC(kbps)</td> <td>XYZ(kbps)</td> </tr> <script type="text/vbscript"> For i =1 to 4 Document.write("<tr>") Document.write("<td >" & i & "</td>") abc = 20 * i xyz = 10*i Document.Write "<TD>" & abc & "</TD>" Document.Write "<TD>" & xyz & "</TD>" Document.write("</tr>") Next </script> </table> </div> </body> <head> Function Entercol() End Function </head> </html> Can anybody tell me what will be my script in EnterCol function. My column should be after "xyz" columns.
|
|