-- Suppose Your Old table Looks Like :
01.<table border="1">
02. <tr>
03. <td>T11</td>
04. <td>T12</td>
05. <td>T13</td>
06. </tr>
07. <tr>
08. <td>T21</td>
09. <td>T22</td>
10. <td>T23</td>
11. </tr>
12.</table>
-- Your New Table Will Be :
01.<table>
02. <tr>
03. <td>T11</td>
04. <td>T12</td>
05. <td>T13</td>
06. </tr>
07. <tr>
08. <td>T21</td>
09. <td>T22</td>
10. <td>T23</td>
11. </tr>
12. <tr>
13. <td>T31</td>
14. <td>T32</td>
15. <td>T33</td>
16. </tr>
17.</table>
-- Use Below Code :
1.<script type="text/javascript" >
2. function NewTable()
3. {
4. newTable.innerHTML ="<table><tr><td>T11</td><td>T12</td><td>T13</td></tr><tr><td>T21</td><td>T22</td><td>T23</td></tr><tr><td>T31</td><td>T32</td><td>T33</td></t
5.
6.r></table>"
7. }
8. </script>
//Div Tag, Your Old Table....
01.<div id="newTable">
02. <table border="1">
03. <tr>
04. <td>T11</td>
05. <td>T12</td>
06. <td>T13</td>
07. </tr>
08. <tr>
09. <td>T21</td>
10. <td>T22</td>
11. <td>T23</td>
12. </tr>
13. </table>
14.</div>
-- For More Clear View, See Below Images :
-- In Below Image It Will Display Old Table...
-- In Below Image When I Clicked On The Button then It Will Replace Your old Table With New Table.
-- Here I Also Not Set Any Attribute For Table So It Will Not Display Border For More Clear View...
-- You Can Download Source File From Here : Click Here
-- It Will Work 100% For You...
-- Hope this Will Help You....