Hi,
I am trying to create rows using for loop. Below is my coding.
When I try on browser, nothing displayed.
What is wrong with the code?
Pls help.
HTML Code:<table border="1"> <tr> <th>Ref.1 No.</th> <th>Track</th> <th>Title</th> </tr> <script language="text/JavaScript"> for (var i=1; i<=10; i++) { document.write('<tr>') document.write('<td>' + (100 + i) + '</td>') document.write('<td> 3 </td>') document.write('<td><a href="3-Management & Marketing\101.pdf" target="_blank">XXXXXXXXXXXX</a></td>') document.write('</tr>') } </script> </table>


Reply With Quote
Bookmarks