Use jQuery to build up your table. 1st Method : $(function () { var contents = ''; contents += '<div id="tableWrap">'; contents += '<table id="basicTable">'; for (var i = 0; i < 200; i++) { contents += '<tr>'; contents += '<td>'; contents += i; contents += '</td>'; ...